Skip to content

Commit

Permalink
Merge pull request #6288 from benz0li/update-dev-containers-a98ddba
Browse files Browse the repository at this point in the history
Update Dev Containers
  • Loading branch information
mpilgrem authored Oct 11, 2023
2 parents 6882d25 + 3620451 commit b52faf9
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dockerfile": "GHC.Dockerfile",
"args": {
"GHC_VERSION": "9.4.7",
"HLS_VERSION": "2.3.0.0",
"HLS_VERSION": "2.4.0.0",
"USE_ZSH_FOR_ROOT": "unset-to-use-ash",
"SET_LANG": "C.UTF-8",
"SET_TZ": ""
Expand Down
63 changes: 63 additions & 0 deletions .devcontainer/ghc-9.8.1/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"name": "GHC 9.8.1",
"build": {
"dockerfile": "../GHC.Dockerfile",
"context": "..",
"args": {
"GHC_VERSION": "9.8.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": [
"[email protected]",
"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",
"mounts": [
"source=stack-ghc-9.8.1-home-vscode,target=/home/vscode,type=volume"
// "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/stack-ghc-9.8.1-home-vscode,target=/home/vscode,type=bind"
],

// "remoteUser": "root",
// "mounts": [
// "source=stack-ghc-9.8.1-root,target=/root,type=volume"
// // "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/stack-ghc-9.8.1-root,target=/root,type=bind"
// ],

// Pip: Install packages to the user site
"remoteEnv": {
"PIP_USER": "1"
}
}

0 comments on commit b52faf9

Please sign in to comment.