-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·32 lines (17 loc) · 927 Bytes
/
deploy.sh
File metadata and controls
executable file
·32 lines (17 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -e # Exit immediately if a command exits with a non-zero status.
if [ "$1" == "java-build" ]; then
mvn clean install -DskipTests
elif [ "$1" == "docker-build" ]; then
mvn -f catalogue-service-micro/pom.xml docker:build -P docker
elif [ "$1" == "docker-build-staging" ]; then
mvn -f catalogue-service-micro/pom.xml docker:build -Ddocker.image.tag=staging -P docker
elif [ "$1" == "docker-run" ]; then
docker run --rm -it -e SPRING_PROFILES_ACTIVE=docker -p "8095:8095" nimbleplatform/catalogue-service-micro-srdc:latest
elif [ "$1" == "docker-run-integrated" ]; then
# execute containers in nimble network
docker network create nimbleinfra_default
docker-compose -f business/catalogue-service-micro/docker-compose.yml --project-name catalogueservice up
elif [ "$1" == "docker-push" ]; then
mvn -f catalogue-service-micro/pom.xml docker:push -P docker
fi