From d9386f905f35685b17df27b881eb9912c3f054d6 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Wed, 25 Feb 2026 21:12:36 +0100 Subject: [PATCH] feat(devcontainer): add devcontainer.json Builds from CI builder base, runs as non-root dev user. postCreateCommand bootstraps PVC home dir on first session. Co-Authored-By: Claude Opus 4.6 --- .devcontainer/devcontainer.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..9a268bc5a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + "name": "foxhunt", + "build": { + "dockerfile": "Dockerfile", + "context": "..", + "args": { + "CI_BUILDER_IMAGE": "rg.fr-par.scw.cloud/foxhunt-ci/ci-builder:latest" + } + }, + "remoteUser": "dev", + "containerEnv": { + "SQLX_OFFLINE": "true", + "CUDA_COMPUTE_CAP": "90", + "EDITOR": "vim" + }, + "postCreateCommand": "/usr/local/bin/init-home.sh", + "postStartCommand": "claude --version && cargo --version && kubectl cluster-info 2>/dev/null || true" +}