diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 255c995fb..a507457af 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,12 +8,13 @@ "features": { "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} }, - "workspaceFolder": "/workspaces/training/", - "workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", + "workspaceFolder": "/workspaces/training", + "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/training,type=bind", // Used for local devcontainers, ignored in Codespaces. "remoteEnv": { "NXF_HOME": "/workspaces/.nextflow", - "HOST_PROJECT_PATH": "${localWorkspaceFolder}" + "HOST_PROJECT_PATH": "/workspaces/training" //Codespaces and local devcontainers will both work with this. }, + "postCreateCommand": "if [ -z \"$CODESPACES\" ]; then echo \"Local Development\"; else echo \"Codespaces Development\"; fi", // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code.