From 14f581632dbec76966a6d56917aff2a229113fc0 Mon Sep 17 00:00:00 2001 From: theProf Date: Fri, 25 Jul 2025 14:49:52 -0400 Subject: [PATCH 1/2] fix: use builtin mktemp instead of uuidgen --- src/scripts/yarn/create_lock.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/yarn/create_lock.sh b/src/scripts/yarn/create_lock.sh index 09421381..55c3b9e8 100644 --- a/src/scripts/yarn/create_lock.sh +++ b/src/scripts/yarn/create_lock.sh @@ -3,8 +3,8 @@ # Create the folder if not exists [ ! -d /tmp/lock ] && mkdir -p /tmp/lock -LOCK_FILE="/tmp/lock/$(uuidgen)" +LOCK_FILE="$(mktemp -t -p /tmp/lock)" touch "$LOCK_FILE" echo "Lock created at $LOCK_FILE" -echo "export LOCK_FILE=$LOCK_FILE" >> "$BASH_ENV" +echo "export LOCK_FILE=$LOCK_FILE" >>"$BASH_ENV" From b781d194949362fe96c49017169e83192357bfa1 Mon Sep 17 00:00:00 2001 From: theProf Date: Mon, 28 Jul 2025 15:32:38 -0400 Subject: [PATCH 2/2] feat(wip): extract node_modules from docker --- src/commands/docker/extract_node_modules.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/commands/docker/extract_node_modules.yml diff --git a/src/commands/docker/extract_node_modules.yml b/src/commands/docker/extract_node_modules.yml new file mode 100644 index 00000000..df7f886b --- /dev/null +++ b/src/commands/docker/extract_node_modules.yml @@ -0,0 +1,19 @@ +parameters: + image_repo: + description: The container image repository + type: string + platform: + description: Platform to build against + type: enum + default: "linux/amd64" + enum: ["linux/amd64", "linux/arm64"] + node_version: + description: Node version + type: string +steps: + - staged_buildx: + image_repo: << parameters.image_repo >> + target: node_modules + platforms: << parameters.platform >> + output: type=local,dest=./node_modules + extra_build_args: NODE_VERSION=<< parameters.node_version >>