-
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.
Merge pull request #125 from bas-kirill/bugfix/deploy-to-dev-split-by…
…-separate-scripts fix(dev): split to separate scripts
- Loading branch information
Showing
10 changed files
with
103 additions
and
91 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -e | ||
currentDir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | ||
rootDir="$currentDir/../../" | ||
|
||
dockerRepository=$1 | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "\033[0;33mNo Docker Hub username provided. 'myshx' will be used.\033[0m" | ||
dockerRepository="myshx" | ||
fi | ||
|
||
dockerTag=$2 | ||
|
||
if [ -z "$2" ] | ||
then | ||
echo -e "\033[0;33mNo Docker Tag provided. Latest will be used.\033[0m" | ||
dockerTag="latest" | ||
fi | ||
|
||
(cd "$rootDir" && ./tools/scripts/openapi/regenerateOpenApi.sh) | ||
|
||
(cd "$rootDir" && exec ./tools/scripts/server/buildJar.sh) | ||
(cd "$rootDir" && exec ./tools/scripts/server/buildImage.sh "$dockerRepository" "$dockerTag") | ||
|
||
(cd "$rootDir" && exec ./tools/scripts/client/build.sh) | ||
|
||
(cd "$rootDir" && exec ./tools/scripts/client/buildDevImage.sh "$dockerRepository" "$dockerTag") | ||
(cd "$rootDir" && exec ./tools/scripts/client/buildImage.sh "$dockerRepository" "$dockerTag") |
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
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/bash | ||
set -e | ||
currentDir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | ||
rootDir="$currentDir/../../" | ||
|
||
(cd "$rootDir" && exec ./tools/scripts/stop.sh) | ||
(cd "$rootDir" && exec ./tools/scripts/clean.sh) | ||
(cd "$rootDir" && exec ./tools/scripts/buildAndPush.sh) | ||
(cd "$rootDir" && exec ./tools/scripts/run.sh) | ||
|
||
echo -e "\033[0;32mList of available ports:\n\033[0m" | ||
(cd "$rootDir" && exec cat ./tools/docker/env/local.env) |
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,21 @@ | ||
#!/bin/bash | ||
set -e | ||
currentDir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | ||
rootDir="$currentDir/../../" | ||
|
||
stage=$1 | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo -e "\033[0;33mNo stage provided. 'local' stage will be used.\033[0m" | ||
stage="local" | ||
fi | ||
|
||
|
||
(cd "$rootDir" && exec docker compose \ | ||
-f ./tools/docker/docker-compose.yml \ | ||
--env-file ./tools/docker/env/$stage.env \ | ||
--project-name=muse-$stage \ | ||
rm -f) | ||
|
||
echo -e "\033[0;32mDocker Service has been stopped.\033[0m" |