Skip to content

Commit 44033be

Browse files
committed
ci: fix broken devcontainer install
1 parent fbde3d6 commit 44033be

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@
33
{
44
"name": "Python 3",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm",
6+
"image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
// "features": {},
1010
"features": {
11-
"ghcr.io/devcontainers/features/docker-in-docker:2": {
12-
"dockerDashComposeVersion": "v2"
13-
},
11+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
1412
"ghcr.io/devcontainers/features/git:1": {},
1513
"ghcr.io/devcontainers/features/github-cli:1": {},
16-
"ghcr.io/devcontainers-contrib/features/ansible:2": {},
14+
// "ghcr.io/devcontainers-contrib/features/ansible:2": {},
1715
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
1816
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
1917
"ghcr.io/devcontainers/features/common-utils:2": {
20-
"installOhMyZsh": true,
21-
"upgradePackages": true
18+
"configureZshAsDefaultShell": true
2219
}
2320
},
2421

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

0 commit comments

Comments
 (0)