Skip to content

Commit

Permalink
ci: fix broken devcontainer install
Browse files Browse the repository at this point in the history
  • Loading branch information
artis3n committed Jul 24, 2024
1 parent fbde3d6 commit 44033be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-contrib/features/ansible:2": {},
// "ghcr.io/devcontainers-contrib/features/ansible:2": {},
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"installOhMyZsh": true,
"upgradePackages": true
"configureZshAsDefaultShell": true
}
},

Expand All @@ -28,6 +25,9 @@
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",
"updateContentCommand": "make install",
// Temporary oncreate command since ansible feature is broken
// https://github.com/devcontainers-contrib/features/issues/607
"onCreateCommand": "sudo apt update && sudo apt install -y pipx; pipx install --include-deps ansible",
"postCreateCommand": "sudo apt update && sudo apt full-upgrade -y",
"postStartCommand": "git pull --prune; make install"

Expand Down

0 comments on commit 44033be

Please sign in to comment.