From 2147e5b7956c034b170b601018ed5cc665bb5089 Mon Sep 17 00:00:00 2001 From: Zoheb Shaikh <26975142+ZohebShaikh@users.noreply.github.com> Date: Tue, 4 Aug 2026 12:02:03 +0000 Subject: [PATCH] add devcontainer for development --- .devcontainer/devcontainer.json | 30 ++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 31 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ade7ebe --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,30 @@ +{ + "name": "glazed developer container", + "build":{ + "dockerfile": "../Dockerfile", + "target": "build" + }, + "customizations": { + "vscode": { + "extensions": [ + "ms-kubernetes-tools.vscode-kubernetes-tools", + "rust-lang.rust-analyzer", + "tamasfe.even-better-toml" + ] + } + }, + "features": { + "ghcr.io/devcontainers/features/common-utils:2.5.9": { + "username": "none", + "upgradePackages": false + } + }, + "runArgs": [ + // Allow the container to access the host X11 display and EPICS CA + "--net=host", + // Make sure SELinux does not disable with access to host filesystems like tmp + "--security-opt=label=disable" + ], + "workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind", + "postStartCommand": "rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt && rustup component add clippy" +} diff --git a/.gitignore b/.gitignore index ea8c4bf..2586389 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +.devcontainer/devcontainer-lock.json