From 4cefa14eeacfae9c10dad690c71af00d5a5aefea 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/podman/devcontainer.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .devcontainer/podman/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" + } +}