Skip to content

Commit c3b0df7

Browse files
committed
(1) Add CHROME_BIN environment variable
(2) Add HOST_PROJECT_PATH environment variable (3) Add a post-create command to install Chromium
1 parent c5b0267 commit c3b0df7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@
2727
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
2828
// Allow devcontainer to use the host's AWS credentials and configuration
2929
"source=${localEnv:HOME}/.aws,target=/root/.aws,type=bind,consistency=cached"
30-
]
30+
],
31+
"remoteEnv": {
32+
"CHROME_BIN": "/usr/bin/chromium",
33+
"HOST_PROJECT_PATH": "${localWorkspaceFolder}"
34+
},
3135

3236
// Use 'forwardPorts' to make a list of ports inside the container available locally.
3337
// "forwardPorts": [],
3438

3539
// Use 'postCreateCommand' to run commands after the container is created.
36-
// "postCreateCommand": "yarn install",
40+
"postCreateCommand": "apt-get update && apt-get install -y chromium"
41+
3742

3843
// Configure tool-specific properties.
3944
// "customizations": {},

0 commit comments

Comments
 (0)