From c363ae99dcfc83696c5f4792c3794e3d81cfb204 Mon Sep 17 00:00:00 2001 From: Brian Egge Date: Wed, 30 Oct 2024 18:18:13 +0000 Subject: [PATCH] Add devcontainer for podman in rootless mode https://stackoverflow.com/questions/58617041/multiple-devcontainers-in-vscode-remote --- .devcontainer/{ => docker}/devcontainer.json | 0 .devcontainer/podman/devcontainer.json | 13 +++++++++++++ 2 files changed, 13 insertions(+) rename .devcontainer/{ => docker}/devcontainer.json (100%) create mode 100644 .devcontainer/podman/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/docker/devcontainer.json similarity index 100% rename from .devcontainer/devcontainer.json rename to .devcontainer/docker/devcontainer.json diff --git a/.devcontainer/podman/devcontainer.json b/.devcontainer/podman/devcontainer.json new file mode 100644 index 0000000..ce629de --- /dev/null +++ b/.devcontainer/podman/devcontainer.json @@ -0,0 +1,13 @@ +{ + "image": "mcr.microsoft.com/devcontainers/python:3.12", + "postCreateCommand": "pip install --upgrade pip && pip3 install -r requirements_generate.txt", + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "runArgs": [ + "--userns=keep-id" + ], + "containerUser": "vscode", + "updateRemoteUserUID": true, + "containerEnv": { + "HOME": "/home/vscode" + } +}