Contains VSCode devcontainer images with tools that I often use.
10K+
This repository contains devcontainers that I often use.
There are two Dockerfiles (one with poetry and one with uv).
Each dockerfile contains the following targets.
base contains python 3.10/11/12, poetry or uv, pipxjust adds just to (1)terraform adds terraform to (2)gcloud adds gcloud to (3)These images are built once/month and pushed to dockerhub.
Tags are structured as follows:
linux-<PLATFORM>-ubuntu2204-py<POETRY/UV><PYTHON-VERSION>-<YYYMMDD>-<TARGET>
For example:
linux-arm64-ubuntu2204-pypoetry312-20240827-gcloud
See https://github.com/JasperHG90/devcontainers
devcontainer.jsonI usually use a variant of the following devcontainer.json file with these docker images:
{
"build": {
"dockerfile": "Dockerfile",
"context": "."
},
"containerEnv": {
"HOME": "/home/vscode"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter",
"ms-python.vscode-pylance",
"tamasfe.even-better-toml",
"kokakiwi.vscode-just",
"redhat.vscode-yaml",
// "mhutchie.git-graph",
// "ms-azuretools.vscode-docker",
// "njpwerner.autodocstring",
// "pomdtr.excalidraw-editor",
],
"settings": {
"python.pythonPath": "/home/vscode/workspace/.venv/bin/python",
}
}
},
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && git config --global --add credential.useHttpPath true",
// Optional. Remove if you don't want/need a .env file in .devcontainer dir (else spinning up the dev container fails)
"runArgs": [
"--env-file",
".devcontainer/.env"
],
"workspaceFolder": "/home/vscode/workspace",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/workspace,type=bind",
// Optional. Adds docker to dev container but also adds to build time.
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
}
Content type
Image
Digest
sha256:4bcd073c2…
Size
820.5 MB
Last updated
5 days ago
docker pull jhginn/devcontainer:ubuntu2404-pypoetry311-20260913-terraform