From b985795723e2257545333955e01e086df6ea8460 Mon Sep 17 00:00:00 2001 From: pogi7 Date: Sun, 10 Sep 2023 23:05:36 +0000 Subject: [PATCH] dev container: add docker and change to debian --- .devcontainer/devcontainer.json | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5a37633e..6b552c6c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,23 +1,28 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu +// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker { - "name": "Ubuntu", + "name": "luminosityleds", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/base:jammy", + // Uses Debian 11 for Dev environment + // https://github.com/microsoft/vscode-dev-containers/tree/main/containers/debian#using-this-definition + "image": "mcr.microsoft.com/devcontainers/base:bullseye", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": { + "version": "latest", + "enableNonRootDocker": "true", + "moby": "true" + }, "ghcr.io/devcontainers/features/node:1": {}, "ghcr.io/devcontainers-contrib/features/npm-package:1": {}, "ghcr.io/devcontainers-community/npm-features/typescript:1": {} }, - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "uname -a", + // "postCreateCommand": "docker --version", // Configure tool-specific properties. "customizations": {