From 9e6277e3a19d02e50ecd7c4657d86ce5ad3a4feb Mon Sep 17 00:00:00 2001 From: Olivier Benz Date: Tue, 28 May 2024 14:52:31 +0200 Subject: [PATCH] Dev Container: Add 'GHC 9.10.1' --- .devcontainer/ghc-9.10.1/devcontainer.json | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .devcontainer/ghc-9.10.1/devcontainer.json diff --git a/.devcontainer/ghc-9.10.1/devcontainer.json b/.devcontainer/ghc-9.10.1/devcontainer.json new file mode 100644 index 0000000000..17a0326240 --- /dev/null +++ b/.devcontainer/ghc-9.10.1/devcontainer.json @@ -0,0 +1,53 @@ +{ + "name": "GHC 9.10.1", + "build": { + "dockerfile": "../GHC.Dockerfile", + "context": "..", + "args": { + "GHC_VERSION": "9.10.1", + "USE_ZSH_FOR_ROOT": "unset-to-use-ash", + "SET_LANG": "C.UTF-8", + "SET_TZ": "" + } + }, + + "onCreateCommand": "onCreateCommand.sh", + "postCreateCommand": "cabal update", + + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "configureZshAsDefaultShell": true, + "upgradePackages": false, + "username": "vscode", + "userUid": "automatic", + "userGid": "automatic" + } + }, + + "customizations": { + "vscode": { + "extensions": [ + "eamodio.gitlens@11.7.0", + "exiasr.hadolint", + "GitHub.vscode-pull-request-github", + "mhutchie.git-graph", + "mutantdino.resourcemonitor", + "timonwong.shellcheck" + ], + "settings": { + "gitlens.showWelcomeOnInstall": false, + "gitlens.showWhatsNewAfterUpgrades": false, + "resmon.show.battery": false, + "resmon.show.cpufreq": false + } + } + }, + + // Set 'remoteUser' to 'root' to connect as root instead. + "remoteUser": "vscode", + + "remoteEnv": { + // Pip: Install packages to the user site + "PIP_USER": "1" + } +}