-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alterando localização dos scripts de inicialização e build.
- Loading branch information
1 parent
34e79ff
commit 9a4acc4
Showing
4 changed files
with
13 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#!/bin/bash | ||
echo "Stopping all running docker containers" | ||
docker stop $(docker ps -aq) | ||
echo "Removing all docker containers" | ||
docker rm $(docker ps -aq) | ||
echo "Removing all docker volumes" | ||
docker volume rm $(docker volume ls -q) | ||
cd ../backend | ||
echo "Booting docker-compose test file" | ||
docker-compose --file .\src\test\resources\docker-compose.yml up -d | ||
docker-compose --file src/test/resources/docker-compose.yml up -d | ||
sleep 10 | ||
echo "Starting build and tests" | ||
mvn clean test | ||
mvn package | ||
echo "Stopping all running docker containers" | ||
docker stop $(docker ps -aq) | ||
docker stop $(docker ps -aq) | ||
cd ../scripts | ||
|
File renamed without changes.
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,3 @@ | ||
#!/bin/bash | ||
echo "Booting docker-compose production file" | ||
docker-compose --file ../docker/docker-compose.yml up --build |