From e419af236358d69b770ffe94958cde9d6200485c Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Thu, 8 May 2025 11:16:36 -0400 Subject: [PATCH 1/6] Add Command That Runs Before Codespace ShutsDown --- .devcontainer/devcontainer.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 587515b..3864d38 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,6 +18,11 @@ "spark-designer": "spark-designer", "spark-file-syncer": "spark-file-syncer 13000 >> /tmp/.spark-file-syncer.log 2>&1" }, + "customizations": { + "codespaces": { + "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" + } + }, "forwardPorts": [4000, 5000, 9000, 13000], "features": { "ghcr.io/devcontainers/features/sshd:1": { @@ -25,4 +30,4 @@ } } } - \ No newline at end of file + From a54c6c6a88c17290c74e118fd73effd3bbe5150d Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Thu, 8 May 2025 11:18:01 -0400 Subject: [PATCH 2/6] Update devcontainer.json --- .devcontainer/devcontainer.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3864d38..6a7c27a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -19,10 +19,10 @@ "spark-file-syncer": "spark-file-syncer 13000 >> /tmp/.spark-file-syncer.log 2>&1" }, "customizations": { - "codespaces": { - "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" - } - }, + "codespaces": { + "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" + } + }, "forwardPorts": [4000, 5000, 9000, 13000], "features": { "ghcr.io/devcontainers/features/sshd:1": { @@ -30,4 +30,3 @@ } } } - From 2feded8c8ccdc0803e23438ead883a4eada7036b Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Thu, 8 May 2025 13:56:23 -0400 Subject: [PATCH 3/6] Update devcontainer.json --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c495cd9..3264cd2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,7 +15,7 @@ }, "customizations": { "codespaces": { - "onStopCommand": "REVISION_NAME='spark-preview' /usr/local/bin/deploy.sh" + "onStopCommand": "REVISION_NAME=spark-preview /usr/local/bin/deploy.sh" } }, "forwardPorts": [ From de9b859b2e50ea25e9aae18a446b897e49abd5ef Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Fri, 9 May 2025 08:03:00 -0400 Subject: [PATCH 4/6] Update devcontainer.json --- .devcontainer/devcontainer.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3264cd2..83fca85 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,11 +1,6 @@ { "name": "Workbench template", "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", - "hostRequirements": { - "storage": "32gb", - "memory": "8gb", - "cpus": 4 - }, // Runs automatically after Prebuild Template environment is created. "onCreateCommand": ".devcontainer/onCreate.sh", // Runs automatically every time the dev container has been (re-)started From b2409f77e26363de4d272412e1ae8b518295ea7f Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Fri, 9 May 2025 12:01:42 -0400 Subject: [PATCH 5/6] Update devcontainer.json --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 83fca85..ba6091a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,7 @@ }, "customizations": { "codespaces": { - "onStopCommand": "REVISION_NAME=spark-preview /usr/local/bin/deploy.sh" + "onStopCommand": "GH_TOKEN=$GH_TOKEN REVISION_NAME=spark-preview /usr/local/bin/deploy.sh" } }, "forwardPorts": [ From a4bcf0aa3f68814f6ead52c961aab9bbb4005ffd Mon Sep 17 00:00:00 2001 From: Alexa Gillman Date: Fri, 9 May 2025 12:39:46 -0400 Subject: [PATCH 6/6] Update devcontainer.json --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ba6091a..83fca85 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,7 @@ }, "customizations": { "codespaces": { - "onStopCommand": "GH_TOKEN=$GH_TOKEN REVISION_NAME=spark-preview /usr/local/bin/deploy.sh" + "onStopCommand": "REVISION_NAME=spark-preview /usr/local/bin/deploy.sh" } }, "forwardPorts": [