From 907d372ec1ac4b590e5c572ced0cdf54e1e62326 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Fri, 1 Dec 2023 20:14:37 +0000 Subject: [PATCH 1/3] Add a script to upgrade lockfiles for all images --- build/upgrade.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 build/upgrade.sh diff --git a/build/upgrade.sh b/build/upgrade.sh new file mode 100755 index 000000000..b7589a405 --- /dev/null +++ b/build/upgrade.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +for dir in ./src/*/ ; do + if [ -d "$dir" ]; then + echo "Upgrading devcontainer lockfiles for '$dir'" + devcontainer upgrade --workspace-folder "$dir" + fi +done \ No newline at end of file From 6e702c2057c81999a4ce274dd5182ed79f744b7f Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Thu, 8 Feb 2024 19:01:17 +0000 Subject: [PATCH 2/3] Adds a helper script for devcontainer upgrades --- build/upgrade-lockfiles.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 build/upgrade-lockfiles.sh diff --git a/build/upgrade-lockfiles.sh b/build/upgrade-lockfiles.sh new file mode 100755 index 000000000..0b91b5a52 --- /dev/null +++ b/build/upgrade-lockfiles.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Pass image name to upgrade only a single image, else it upgrades all the images +IMAGE_NAME=$1 +workspaceFolder="/workspaces/images/src" + +if [ ! -z "$IMAGE_NAME" ]; then + echo "-----------------------------------------------" + echo "Upgrading image $IMAGE_NAME" + echo "-----------------------------------------------" + devcontainer upgrade --workspace-folder "${workspaceFolder}/${IMAGE_NAME}/" + exit 0 +fi + +for dir in /workspaces/images/src/*/ +do + cd "${dir}" + image=$(basename $dir) + echo "-----------------------------------------------" + echo "Upgrading image $image" + echo "-----------------------------------------------" + devcontainer upgrade --workspace-folder . + cd .. +done \ No newline at end of file From fdfa6b7579d832c8088fd7fbfcb4f14f63b0a34a Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Thu, 8 Feb 2024 19:05:33 +0000 Subject: [PATCH 3/3] remove stale file --- build/upgrade.sh | 8 -------- 1 file changed, 8 deletions(-) delete mode 100755 build/upgrade.sh diff --git a/build/upgrade.sh b/build/upgrade.sh deleted file mode 100755 index b7589a405..000000000 --- a/build/upgrade.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -for dir in ./src/*/ ; do - if [ -d "$dir" ]; then - echo "Upgrading devcontainer lockfiles for '$dir'" - devcontainer upgrade --workspace-folder "$dir" - fi -done \ No newline at end of file