|
1 | 1 | { |
2 | | - "name": "${localWorkspaceFolderBasename}", |
3 | | - "build": { |
4 | | - "dockerfile": "../Dockerfile", |
5 | | - "args": { |
6 | | - "USERNAME": "${localEnv:USER}", |
| 2 | + "name": "${localWorkspaceFolderBasename}", |
| 3 | + "build": { |
| 4 | + "dockerfile": "../Dockerfile", |
| 5 | + "args": { |
| 6 | + "USERNAME": "${localEnv:USER}" |
| 7 | + } |
7 | 8 | }, |
8 | | - }, |
9 | | - "remoteUser": "${localEnv:USER}", |
10 | | - "updateRemoteUserUID": true, |
11 | | - "shutdownAction": "stopContainer", |
12 | | - "initializeCommand": ".devcontainer/init-ssh-agent.sh", |
13 | | - "runArgs": [ |
14 | | - "--name", |
15 | | - "${localWorkspaceFolderBasename}", |
16 | | - "--hostname", |
17 | | - "bull", |
18 | | - "--memory=8g", |
19 | | - "--security-opt", |
20 | | - "label=disable", |
21 | | - ], |
22 | | - "mounts": [ |
23 | | - "source=${localEnv:HOME}/.ssh,target=/home/${localEnv:USER}/.ssh,type=bind,consistency=cached", |
24 | | - "source=/tmp/ssh-agent.sock,target=/ssh-agent,type=bind,consistency=cached", |
25 | | - "source=${localEnv:HOME}/.gitconfig,target=/home/${localEnv:USER}/.gitconfig,type=bind,consistency=cached", |
26 | | - ], |
27 | | - "containerEnv": { |
28 | | - "SSH_AUTH_SOCK": "/ssh-agent", |
29 | | - }, |
30 | | - "postCreateCommand": "flutter config --no-analytics && dart --disable-analytics && cp -n .env.template .env", |
31 | | - "postStartCommand": "sudo chown -R --no-dereference ${localEnv:USER}:${localEnv:USER} /home/${localEnv:USER}/.ssh || true; chmod 700 /home/${localEnv:USER}/.ssh; find /home/${localEnv:USER}/.ssh -maxdepth 1 -type f -exec chmod 600 {} + 2>/dev/null || true", |
| 9 | + "remoteUser": "${localEnv:USER}", |
| 10 | + "updateRemoteUserUID": true, |
| 11 | + "shutdownAction": "stopContainer", |
| 12 | + "initializeCommand": ".devcontainer/init-ssh-agent.sh", |
| 13 | + "runArgs": [ |
| 14 | + "--name", |
| 15 | + "${localWorkspaceFolderBasename}", |
| 16 | + "--hostname", |
| 17 | + "bull", |
| 18 | + "--memory=8g", |
| 19 | + "--security-opt", |
| 20 | + "label=disable" |
| 21 | + ], |
| 22 | + "mounts": [ |
| 23 | + "source=${localEnv:HOME}/.ssh,target=/home/${localEnv:USER}/.ssh,type=bind,consistency=cached", |
| 24 | + "source=/tmp/ssh-agent.sock,target=/ssh-agent,type=bind,consistency=cached", |
| 25 | + "source=${localEnv:HOME}/.gitconfig,target=/home/${localEnv:USER}/.gitconfig,type=bind,consistency=cached" |
| 26 | + ], |
| 27 | + "containerEnv": { |
| 28 | + "SSH_AUTH_SOCK": "/ssh-agent" |
| 29 | + }, |
| 30 | + "postCreateCommand": "flutter config --no-analytics && dart --disable-analytics", |
| 31 | + "postStartCommand": "sudo chown -R --no-dereference ${localEnv:USER}:${localEnv:USER} /home/${localEnv:USER}/.ssh || true; chmod 700 /home/${localEnv:USER}/.ssh; find /home/${localEnv:USER}/.ssh -maxdepth 1 -type f -exec chmod 600 {} + 2>/dev/null || true" |
32 | 32 | } |
0 commit comments