Skip to content

Commit

Permalink
Add extraction time
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
  • Loading branch information
mcandeia committed Dec 29, 2023
1 parent 3ca13b9 commit cc24471
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platforms/kubernetes/common/cmds/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const script = `
#!/bin/bash
CODE_DIR=/app/deco
start=$(date +%s)
tar xvf $SOURCE_ASSET_PATH -C $CODE_DIR &
SOURCE_TAR_PID=$!
Expand All @@ -11,6 +12,10 @@ CACHE_PATH_PID=$!
wait $SOURCE_TAR_PID
wait $CACHE_PATH_PID
end=$(date +%s)
echo "extraction time: $(($end-$start)) seconds"
cd $CODE_DIR
SOURCE_MOUNT_PATH="\${ASSETS_MOUNT_PATH:-/deco-sites-sources}"
deno run $EXTRA_RUN_ARGS --node-modules-dir=false --allow-env --allow-net --allow-sys --allow-hrtime --allow-read --deny-read=$SOURCE_MOUNT_PATH --allow-run --allow-write=$HOME/.cache --unstable main.ts
Expand Down

0 comments on commit cc24471

Please sign in to comment.