Fix devcontainer.json config to support new non-root user handling

This commit is contained in:
David Robakowski 2021-04-29 12:03:32 +02:00
parent 83d437c32e
commit f289860f00
2 changed files with 6 additions and 2 deletions

View file

@ -1,12 +1,14 @@
{ {
"name": "Plutus Starter Project", "name": "Plutus Starter Project",
"image": "plutus-devcontainer:latest", "image": "plutus-devcontainer:latest",
"remoteUser": "plutus",
"mounts": [ "mounts": [
// This shares cabal's remote repository state with the host. We don't mount the whole of '.cabal', because // This shares cabal's remote repository state with the host. We don't mount the whole of '.cabal', because
// 1. '.cabal/config' contains absolute paths that will only make sense on the host, and // 1. '.cabal/config' contains absolute paths that will only make sense on the host, and
// 2. '.cabal/store' is not necessarily portable to different version of cabal etc. // 2. '.cabal/store' is not necessarily portable to different version of cabal etc.
"source=${localEnv:HOME}/.cabal/packages,target=/root/.cabal/packages,type=bind,consistency=cached", "source=${localEnv:HOME}/.cabal/packages,target=/home/plutus/.cabal/packages,type=bind,consistency=cached",
], ],
"settings": { "settings": {

View file

@ -1,12 +1,14 @@
{ {
"name": "Plutus Starter Project", "name": "Plutus Starter Project",
"image": "plutus-devcontainer:latest", "image": "plutus-devcontainer:latest",
"remoteUser": "plutus",
"mounts": [ "mounts": [
// This shares cabal's remote repository state with the host. We don't mount the whole of '.cabal', because // This shares cabal's remote repository state with the host. We don't mount the whole of '.cabal', because
// 1. '.cabal/config' contains absolute paths that will only make sense on the host, and // 1. '.cabal/config' contains absolute paths that will only make sense on the host, and
// 2. '.cabal/store' is not necessarily portable to different version of cabal etc. // 2. '.cabal/store' is not necessarily portable to different version of cabal etc.
"source=${localEnv:HOME}/.cabal/packages,target=/root/.cabal/packages,type=bind,consistency=cached", "source=${localEnv:HOME}/.cabal/packages,target=/home/plutus/.cabal/packages,type=bind,consistency=cached",
], ],
"settings": { "settings": {