Collection of Docker images for various purposes.
10K+
The sommerfeldio/devcontainer Docker image serves as a foundational development environment for projects under the sommerfeld.ioā organization. It includes essential tools required by all repositories. It can be used as either a ready-to-use development container for immediate coding, or as a base image that can be extended with additional tools as needed.
edge and latest)Learn about our tagging policy and the difference between rolling tags and immutable tags on our documentation pageā ā .
Three image variants are published from the same Dockerfile, one stage per variant:
base stage is published as sommerfeldio/devcontainer:<version>, :edge, and :latest and provides the default development environment.ansible stage is published as sommerfeldio/devcontainer:<version>-ansible, :edge-ansible, and :latest-ansible and adds ansible-dev-tools on top of the base stage, including tools such as ansible-playbook, ansible-lint, ansible-navigator, and molecule on PATH.go stage is published as sommerfeldio/devcontainer:<version>-go, :edge-go, and :latest-go and adds the Go toolchain, gopls, dlv, and build-essential on top of the base stage for Go development.Both variants are based on Microsoft's mcr.microsoft.com/devcontainers/base:resoluteā image, which tracks the current Ubuntu LTS base image published by Microsoft Dev Containers. They are configured to run as the non-root user vscode by default. File permissions and mounted volumes will be owned and accessed by the vscode user (uid = 1000, gid = 1000).
The easiest way to use either variant is by adding a Dockerfile to your repository's .devcontainer folder and extending the matching sommerfeldio/devcontainer tag. This approach provides several benefits:
base stage)Extend the plain sommerfeldio/devcontainer tag for the default development environment:
FROM sommerfeldio/devcontainer:latest
LABEL maintainer="[email protected]"
{
"name": "project-name",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"ms-azuretools.vscode-docker",
"github.vscode-github-actions",
"redhat.vscode-yaml"
]
}
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:4.0.0": {
"moby": false
}
}
}
ansible stage)If you need the Ansible tooling, extend the published -ansible tag instead:
FROM sommerfeldio/devcontainer:latest-ansible
LABEL maintainer="[email protected]"
The .devcontainer/devcontainer.json shown above works unchanged for this variant. In addition to everything in the base stage, the ansible stage puts ansible-dev-tools (ansible-playbook, ansible-lint, ansible-navigator, molecule, and related tools) on PATH.
go stage)If you need Go tooling, extend the published -go tag instead:
FROM sommerfeldio/devcontainer:latest-go
LABEL maintainer="[email protected]"
The .devcontainer/devcontainer.json shown above works unchanged for this variant. In addition to everything in the base stage, the go stage provides the Go toolchain plus gopls, dlv, and build-essential on PATH for Go development, debugging, and CGO-based builds.
Every image comes with a Software Bill of Materials (SBOM) in SPDXā JSON format, one per platform (linux/amd64, linux/arm64). The SBOM is created with syftā at build time and attached to the image on Docker Hub as an attestation. It is available for edge, latest and every version tag (starting with 0.25.2) and always matches the image digest the tag points to.
All variants have their own SBOM. The variant is part of the tag:
| Variant | Tags | Example |
|---|---|---|
| base | edge, latest, <version> | sommerfeldio/devcontainer:latest |
| ansible | edge-ansible, latest-ansible, <version>-ansible | sommerfeldio/devcontainer:latest-ansible |
| go | edge-go, latest-go, <version>-go | sommerfeldio/devcontainer:latest-go |
The examples below use the -go variant (sommerfeldio/devcontainer:latest-go). Replace the tag to get the SBOM of another variant.
All you need is Docker with the buildx pluginā . Pulling the image is not required.
# Show the SBOM of all platforms
docker buildx imagetools inspect sommerfeldio/devcontainer:latest-go --format '{{ json .SBOM }}'
# Save the SBOM of one platform as a file
docker buildx imagetools inspect sommerfeldio/devcontainer:latest-go --format '{{ json (index .SBOM "linux/amd64").SPDX }}' > devcontainer-go-amd64.spdx.json
For a specific version, replace latest with the version tag, e.g. sommerfeldio/devcontainer:1.0.0-go. As an alternative, docker scout sbom sommerfeldio/devcontainer:latest-go shows the SBOM as well.
The Vulnerability Reportā shows the known vulnerabilities of the edge and latest tags of all images, based on these SBOMs. It is updated daily.
Use the repository's canonical task workflow to build the published variants locally:
task build:devcontainer
task build:devcontainer-ansible
task build:devcontainer-go
The underlying Dockerfile exposes explicit base, ansible, and go stages. Equivalent raw Docker commands are shown below using the repository's local tagging convention (local/devcontainer:dev, local/devcontainer:dev-ansible, and local/devcontainer:dev-go):
To build the default image from the explicit base stage locally, run:
docker build -f components/devcontainer/Dockerfile --target base -t local/devcontainer:dev components/devcontainer
To build the published Ansible variant from the explicit ansible stage locally, run:
docker build -f components/devcontainer/Dockerfile --target ansible -t local/devcontainer:dev-ansible components/devcontainer
To build the published Go variant from the explicit go stage locally, run:
docker build -f components/devcontainer/Dockerfile --target go -t local/devcontainer:dev-go components/devcontainer
We publish this image so you can conveniently use the tool or collection of tools inside it. We maintain the image itself, but we do not maintain the packaged tools and do not provide support for the software inside the container. Please report issues with a tool to its upstream project.
This container image is inheriting the MIT License from the GitHub repositoryā .
The license from this GitHub repository is compatible with the license from the devcontainers projectā which is MIT as well.
Content type
Image
Digest
sha256:67e79c521ā¦
Size
821.6 MB
Last updated
2 days ago
docker pull sommerfeldio/devcontainer