From 26fb4b6c57056966c7dc4e272c072cf038d7f1b2 Mon Sep 17 00:00:00 2001 From: Thomas Schaffter Date: Wed, 4 Dec 2024 15:31:16 -0800 Subject: [PATCH] Add Docker in Docker to the dev container (#73) * Add Docker in Docker to the devcontainer * add docs about docker * forward local environment variables to the devcontainer * remove containerEnv --- .devcontainer/devcontainer.json | 6 +++++- README.md | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3746fd1..fe17278 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,11 @@ "ghcr.io/devcontainers/features/python:1.6.3": { "version": "3.12.0" }, - "ghcr.io/devcontainers/features/aws-cli:1": {} + "ghcr.io/devcontainers/features/aws-cli:1": {}, + "ghcr.io/devcontainers/features/docker-in-docker:2.12.0": { + "version": "27.0.3", + "moby": false + } }, "postCreateCommand": "./tools/setup.sh", "shutdownAction": "stopContainer" diff --git a/README.md b/README.md index fce5714..aa71846 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,11 @@ tools can be installed by running: ./tools/setup.sh ``` +When developing outside the dev container, the following tools must be installed +manually. + +- [Docker](https://docs.docker.com/engine/install/) >= v27 + Development requires the activation of the Python virtual environment: ```