Skip to content

Commit

Permalink
[#1] Setting fixed user name to developer ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Patalon committed Oct 21, 2020
1 parent 807452c commit 0e1b192
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"name": "gcc:latest",
"name": "vsc-gcc:latest",

"build": {
"dockerfile": "Dockerfile",
"args": {
"USERNAME": "${localEnv:DOCKER_USER}",
"HOME": "/home/${localEnv:DOCKER_USER}",
"DOCKER_VOLUME": "/home/${localEnv:DOCKER_USER}/volume",
"USERNAME": "developer",
"HOME": "/home/developer",
"DOCKER_VOLUME": "/home/developer/volume",
}
},

"containerUser": "developer",

"runArgs": [
"--name=vsc-gcc-latest",
"--hostname=gcc",
Expand All @@ -26,11 +28,7 @@
"ms-vscode.cpptools"
],

"containerUser": "${localEnv:DOCKER_USER}",

"mounts": [
"source=vsc-gcc-latest-volume,target=/home/${localEnv:DOCKER_USER}/volume,type=volume"
],

"postCreateCommand": ""
"source=vsc-gcc-latest-volume,target=/home/developer/volume,type=volume"
]
}

0 comments on commit 0e1b192

Please sign in to comment.