From 304276f1fba7d85f6e55630db238c0417ed79e87 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 1 Jan 2021 21:39:35 +0000 Subject: [PATCH] Add devcontainer --- .devcontainer/Dockerfile | 9 +++++++++ .devcontainer/devcontainer.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..26bedd3 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,9 @@ +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/alpine/.devcontainer/base.Dockerfile + +# [Choice] Alpine version: 3.12, 3.11, 3.10 +ARG VARIANT="3.12" +FROM mcr.microsoft.com/vscode/devcontainers/base:0-alpine-${VARIANT} + +# ** [Optional] Uncomment this section to install additional packages. ** +# RUN apk update \ +# && apk add --no-cache diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..42ab111 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,31 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/alpine +{ + "name": "Alpine", + "build": { + "dockerfile": "Dockerfile", + // Update 'VARIANT' to pick an Alpine version: 3.10, 3.11, 3.12 + "args": { "VARIANT": "3.12" } + }, + + // Set *default* container specific settings.json values on container create. + "settings": { + "terminal.integrated.shell.linux": "/bin/ash" + }, + + // Add the IDs of extensions you want installed when the container is created. + // Note that some extensions may not work in Alpine Linux. See https://aka.ms/vscode-remote/linux. + "extensions": [], + + // 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", + + // Uncomment when using a ptrace-based debugger like C++, Go, and Rust + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], + + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" +} \ No newline at end of file