From 5bbeb1351e3cfedc3285384b3a1cc35e09c1dd0b Mon Sep 17 00:00:00 2001 From: Jonathan Manning Date: Thu, 27 Feb 2025 13:19:50 +0000 Subject: [PATCH 1/4] See what happens if I reintroduce the variable to devcontainer config --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 255c995fb..9da17b88f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,7 @@ "features": { "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} }, - "workspaceFolder": "/workspaces/training/", + "workspaceFolder": "${localWorkspaceFolder}", "workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", "remoteEnv": { "NXF_HOME": "/workspaces/.nextflow", From 7e805cf9b38fe22f989d15e9b9e451e2413e19b6 Mon Sep 17 00:00:00 2001 From: Jonathan Manning Date: Thu, 27 Feb 2025 14:23:04 +0000 Subject: [PATCH 2/4] Try another devcontainers config --- .devcontainer/devcontainer.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9da17b88f..74d3f1f00 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,12 +8,13 @@ "features": { "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} }, - "workspaceFolder": "${localWorkspaceFolder}", - "workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", + "workspaceFolder": "/workspaces/training", + "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/training,type=bind", //This line will work in local devcontainers, but not in codespaces. "remoteEnv": { - "NXF_HOME": "/workspaces/.nextflow", - "HOST_PROJECT_PATH": "${localWorkspaceFolder}" + "NXF_HOME": "/workspaces/.nextflow", + "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. From 7fa9a4dbd61ec02e088621e9c1612ebd95edf7a2 Mon Sep 17 00:00:00 2001 From: Jonathan Manning Date: Thu, 27 Feb 2025 14:24:19 +0000 Subject: [PATCH 3/4] Update .devcontainer/devcontainer.json --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 74d3f1f00..31683e6d5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,8 +11,8 @@ "workspaceFolder": "/workspaces/training", "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/training,type=bind", //This line will work in local devcontainers, but not in codespaces. "remoteEnv": { - "NXF_HOME": "/workspaces/.nextflow", - "HOST_PROJECT_PATH": "/workspaces/training" //Codespaces and local devcontainers will both work with this. + "NXF_HOME": "/workspaces/.nextflow", + "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. From c14bf4e614db9a9469bf0ff70c7f9edbdf193454 Mon Sep 17 00:00:00 2001 From: Jonathan Manning Date: Thu, 27 Feb 2025 15:00:16 +0000 Subject: [PATCH 4/4] Update .devcontainer/devcontainer.json --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 31683e6d5..a507457af 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,7 +9,7 @@ "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} }, "workspaceFolder": "/workspaces/training", - "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/training,type=bind", //This line will work in local devcontainers, but not in codespaces. + "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/training,type=bind", // Used for local devcontainers, ignored in Codespaces. "remoteEnv": { "NXF_HOME": "/workspaces/.nextflow", "HOST_PROJECT_PATH": "/workspaces/training" //Codespaces and local devcontainers will both work with this.