-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update infra following docker update
- Loading branch information
Showing
5 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
#Needs to be run as sudo | ||
|
||
readonly LOG_DIR="/var/log/data-jobs" | ||
|
||
if [ ! -d "$LOG_DIR" ]; then | ||
sudo mkdir -p "$LOG_DIR" | ||
sudo chown $(whoami):$(whoami) "$LOG_DIR" | ||
fi | ||
|
||
trigger_indexes_creation(){ | ||
echo "Création des index mongoDb ..." | ||
/opt/app/tools/docker-compose.sh run --rm --no-deps server yarn cli indexes:recreate --queued | ||
} | ||
|
||
trigger_indexes_creation |