-
Notifications
You must be signed in to change notification settings - Fork 0
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
mcbloch
committed
Nov 6, 2020
1 parent
18800f8
commit 3515ad0
Showing
7 changed files
with
48 additions
and
17 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,12 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -ne 2 ]; then | ||
echo "Usage: $0 <hostname> <port>" >&2 | ||
exit 1 | ||
fi | ||
|
||
while ! nc -z "$1" "$2"; do | ||
echo "$1:$2 not yet available, waiting" | ||
sleep 1 | ||
done | ||
echo "Done" |
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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# Add docker host address to the hosts file | ||
./add-docker-host-to-hosts-file.sh | ||
./scripts/add-docker-host-to-hosts-file.sh | ||
|
||
./scripts/wait_for_service db 3306 | ||
|
||
echo "Migration with the following database" | ||
echo "$DATABASE_URL" | ||
|
||
# migrate and run the application | ||
java -Dconf=dev-config.edn -jar target/uberjar/g2.jar migrate && \ | ||
java -Dconf=dev-config.edn -jar target/uberjar/g2.jar migrate || exit 1 | ||
echo "Migration done." | ||
echo "Starting server" | ||
java -Dconf=dev-config.edn -jar target/uberjar/g2.jar | ||
|