From 2722b4a5f3d76ba488c77d7d813810e045a2b129 Mon Sep 17 00:00:00 2001 From: bootc-dev Bot Date: Fri, 31 Oct 2025 18:14:26 +0000 Subject: [PATCH] Sync common files from infra repository Synchronized from bootc-dev/infra@b23aa64010d014befa5adc5bc54363b6fb60a3e4. Signed-off-by: bootc-dev Bot --- .bootc-dev-infra-commit.txt | 2 +- .devcontainer/devcontainer.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.bootc-dev-infra-commit.txt b/.bootc-dev-infra-commit.txt index 68a3995..aaaf938 100644 --- a/.bootc-dev-infra-commit.txt +++ b/.bootc-dev-infra-commit.txt @@ -1 +1 @@ -3e0c644d172f697e20e5bb4450d407dd293ea14a +b23aa64010d014befa5adc5bc54363b6fb60a3e4 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..26e62a2 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,28 @@ +{ + "name": "bootc-devenv-debian", + // TODO override this back to prod image + "image": "ghcr.io/bootc-dev/devenv-debian", + "customizations": { + "vscode": { + // Abitrary, but most of our code is in one of these two + "extensions": [ + "rust-lang.rust-analyzer", + "golang.Go" + ] + } + }, + "features": {}, + "runArgs": [ + // Because we want to be able to run podman and also use e.g. /dev/kvm + // among other things + "--privileged" + ], + "postCreateCommand": { + // Our init script + "devenv-init": "sudo /usr/local/bin/devenv-init.sh" + }, + "remoteEnv": { + "PATH": "${containerEnv:PATH}:/usr/local/cargo/bin" + } +} +