Skip to content

Commit

Permalink
ci: fix deployment create_backup_dir (#103)
Browse files Browse the repository at this point in the history
fixes: #102 

deployment was failling because the chown -R in backups directory, during `make create_backups_dir` was taking far too much time
  • Loading branch information
alexgarel authored Jan 4, 2024
1 parent 234fd2d commit 5b31460
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ up:

create_backups_dir:
@echo "🥫 Ensure backups dir for elasticsearch"
docker-compose run --rm -u root elasticsearch bash -c "mkdir -p /opt/elasticsearch/backups && chown elasticsearch:root -R /opt/elasticsearch/backups"
docker-compose run --rm -u root elasticsearch bash -c "mkdir -p /opt/elasticsearch/backups && chown elasticsearch:root /opt/elasticsearch/backups"
# the chown -R takes far too long on a big backup directory through NFS with high latency…
# removed it for now
# docker-compose run --rm -u root elasticsearch bash -c "mkdir -p /opt/elasticsearch/backups && chown elasticsearch:root -R /opt/elasticsearch/backups"

down:
@echo "🥫 Bringing down containers …"
Expand Down

0 comments on commit 5b31460

Please sign in to comment.