Skip to content

Commit

Permalink
chore: Entrypoint now pauses for S3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 4, 2024
1 parent cf31172 commit b81be07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql-backup/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ if [ -v BACKUP_VOLUME_IS_S3 ]; then
echo "--] s3fs AWS_BUCKET_NAME=${AWS_BUCKET_NAME}"
echo "--] s3fs S3FS_CMD_OPTIONS=${S3FS_CMD_OPTIONS}"
s3fs ${AWS_BUCKET_NAME} ${S3FS_CMD_OPTIONS}

# And then wait (to avoid weird /backup root directories not existing)
echo "--] Sleeping for 4 seconds..."
sleep 4
echo "--] Slept"
fi

# Run the backup logic
Expand Down
5 changes: 5 additions & 0 deletions sql-recovery/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ if [ -v BACKUP_VOLUME_IS_S3 ]; then
echo "--] s3fs AWS_BUCKET_NAME=${AWS_BUCKET_NAME}"
echo "--] s3fs S3FS_CMD_OPTIONS=${S3FS_CMD_OPTIONS}"
s3fs ${AWS_BUCKET_NAME} ${S3FS_CMD_OPTIONS}

# And then wait (to avoid weird /backup root directories not existing)
echo "--] Sleeping for 4 seconds..."
sleep 4
echo "--] Slept"
fi

# Run the recovery logic
Expand Down

0 comments on commit b81be07

Please sign in to comment.