-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7f1878
commit 0364914
Showing
4 changed files
with
37 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# Change working dir, so relative volume mounts are in the right place. | ||
cd ~/.aztec | ||
|
||
# Favour 'docker compose', falling back on docker-compose. | ||
CMD="docker compose" | ||
$CMD &>/dev/null || CMD="docker-compose" | ||
|
||
$CMD -f ~/.aztec/bin/docker-compose.yml up | ||
ARGS="-f $HOME/.aztec/bin/docker-compose.yml -p sandbox" | ||
|
||
# Function to be executed when SIGINT is received. | ||
cleanup() { | ||
$CMD $ARGS down | ||
} | ||
|
||
# Set trap to catch SIGINT and call the cleanup function. | ||
trap cleanup SIGINT | ||
|
||
# Change working dir, so relative volume mounts are in the right place. | ||
cd ~/.aztec | ||
|
||
$CMD $ARGS up --force-recreate --remove-orphans |
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