From 01a22c083a1102d77b09eba279f1c787785a9911 Mon Sep 17 00:00:00 2001 From: Brian Egge Date: Sun, 10 Nov 2024 20:22:17 +0000 Subject: [PATCH] Changes to allow using podman https://code.visualstudio.com/remote/advancedcontainers/docker-options#_podman --- .devcontainer.json | 9 ++++++++- scripts/setup | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.devcontainer.json b/.devcontainer.json index f97a9c5..cf93dbf 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -36,8 +36,15 @@ } } }, + // Podman stuff + "runArgs": ["--userns=keep-id"], + "containerUser": "vscode", + "updateRemoteUserUID": true, + "containerEnv": { + "HOME": "/home/vscode" + }, "remoteUser": "vscode", "features": { "ghcr.io/devcontainers/features/rust:1": {} } -} \ No newline at end of file +} diff --git a/scripts/setup b/scripts/setup index abe537a..9915dbc 100755 --- a/scripts/setup +++ b/scripts/setup @@ -4,4 +4,5 @@ set -e cd "$(dirname "$0")/.." +python3 -m pip install --upgrade pip python3 -m pip install --requirement requirements.txt \ No newline at end of file