Skip to content

Commit

Permalink
build: cache 2nd cert nginx build, logs for backup entry
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 31, 2023
1 parent df67817 commit 4b21a5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nginx/build_img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ -n "$PUSH_IMGS" ]]; then
docker push "ghcr.io/hotosm/fmtm/certs-init:latest"
fi

docker build nginx --no-cache \
docker build nginx \
--tag "ghcr.io/hotosm/fmtm/certs-init-all:latest" \
--target certs-init-all \
--build-arg NGINX_TAG="${NGINX_TAG:-1.25.2}"
Expand Down
6 changes: 4 additions & 2 deletions src/backend/backup-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ backup_db() {
### Script START ###
####################

sleep 600 # 5 mins, allow migrations to complete on first start
echo "Waiting 5 minutes (for migrations) before first backup."
sleep 600

while true; do
pretty_echo "### Backup FMTM $(date +%Y-%m-%d_%H:%M:%S) ###"
Expand All @@ -132,7 +133,8 @@ while true; do
pretty_echo "### Backup ODK Central Complete ###"
fi

sleep 86400 # 1 day
echo "Waiting 24hrs until next backup."
sleep 86400
done

####################
Expand Down

0 comments on commit 4b21a5e

Please sign in to comment.