|
3 | 3 | { |
4 | 4 | "name": "Python 3", |
5 | 5 | // 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", |
7 | 7 |
|
8 | 8 | // Features to add to the dev container. More info: https://containers.dev/features. |
9 | 9 | // "features": {}, |
10 | 10 | "features": { |
11 | | - "ghcr.io/devcontainers/features/docker-in-docker:2": { |
12 | | - "dockerDashComposeVersion": "v2" |
13 | | - }, |
| 11 | + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, |
14 | 12 | "ghcr.io/devcontainers/features/git:1": {}, |
15 | 13 | "ghcr.io/devcontainers/features/github-cli:1": {}, |
16 | | - "ghcr.io/devcontainers-contrib/features/ansible:2": {}, |
| 14 | + // "ghcr.io/devcontainers-contrib/features/ansible:2": {}, |
17 | 15 | "ghcr.io/devcontainers-contrib/features/poetry:2": {}, |
18 | 16 | "ghcr.io/devcontainers-contrib/features/pre-commit:2": {}, |
19 | 17 | "ghcr.io/devcontainers/features/common-utils:2": { |
20 | | - "installOhMyZsh": true, |
21 | | - "upgradePackages": true |
| 18 | + "configureZshAsDefaultShell": true |
22 | 19 | } |
23 | 20 | }, |
24 | 21 |
|
|
28 | 25 | // Use 'postCreateCommand' to run commands after the container is created. |
29 | 26 | // "postCreateCommand": "pip3 install --user -r requirements.txt", |
30 | 27 | "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", |
31 | 31 | "postCreateCommand": "sudo apt update && sudo apt full-upgrade -y", |
32 | 32 | "postStartCommand": "git pull --prune; make install" |
33 | 33 |
|
|
0 commit comments