Skip to content

Commit 7e805cf

Browse files
committed
Try another devcontainers config
1 parent 5bbeb13 commit 7e805cf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
"features": {
99
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
1010
},
11-
"workspaceFolder": "${localWorkspaceFolder}",
12-
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",
11+
"workspaceFolder": "/workspaces/training",
12+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/training,type=bind", //This line will work in local devcontainers, but not in codespaces.
1313
"remoteEnv": {
14-
"NXF_HOME": "/workspaces/.nextflow",
15-
"HOST_PROJECT_PATH": "${localWorkspaceFolder}"
14+
"NXF_HOME": "/workspaces/.nextflow",
15+
"HOST_PROJECT_PATH": "/workspaces/training" //Codespaces and local devcontainers will both work with this.
1616
},
17+
"postCreateCommand": "if [ -z \"$CODESPACES\" ]; then echo \"Local Development\"; else echo \"Codespaces Development\"; fi",
1718
// Configure tool-specific properties.
1819
"customizations": {
1920
// Configure properties specific to VS Code.

0 commit comments

Comments
 (0)