░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/build/docker-compose/data_loader
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: fetch-volumes
#!/bin/bash set -x archive_path=$1 if [[ $archive_path ]]; then for dir in /volumes/*_data; do ( echo "Attempting to read $DOCKER_CACHE_S3_REGION $archive_path/`basename "$dir"`" # wait for it to appear (if this is a CI worker) while ! aws s3 ls --region "$DOCKER_CACHE_S3_REGION" "$archive_path/`basename "$dir"`"; do sleep 10; done echo "Finished waiting for aws s3 ls command" aws s3 cp --region "$DOCKER_CACHE_S3_REGION" "$archive_path/`basename "$dir"`" - | \ tar vxzpPf - "$dir/" echo "PID is $! for aws cp on $DOCKER_CACHE_S3_REGION" "$archive_path/`basename "$dir"`" ) & done echo "jobs -p contains:" jobs -p for job in $(jobs -p); do echo "Waiting for $job to finish" wait $job || { echo "$job did not finish"; exit 1; } done fi touch /volumes/.ready
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 Dockerfile
?
351 B
2023-09-24 03:36
EDIT
📄 fetch-volumes
?
838 B
2023-09-24 03:36
EDIT
📄 push-volumes
?
602 B
2023-09-24 03:36
EDIT
📄 wait-for-it
?
141 B
2023-09-24 03:36
EDIT