Skip to content

Commit

Permalink
[EXTRA] cicd test run_java.sh 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
boham97 committed Dec 18, 2023
1 parent 8c91956 commit 658aca8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion order-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.example'
version = '1.0.1'
version = '1.0.2'

java {
sourceCompatibility = '11'
Expand Down
12 changes: 6 additions & 6 deletions order-service/deploy/run_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ sudo docker build -t $service:$version .
echo "build"
sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \
-e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/delivery" \
-e "spring.redis.host: redis" \
-e "spring.kafka.host: kafka1" \
-e "spring.kafka.port: 19092" \
-e "spring.redis.host=redis" \
-e "spring.kafka.host=kafka1" \
-e "spring.kafka.port=19092" \
$service:$version
echo "successfully run!"
sudo docker stop "$service-1"
sudo docker rm "$service-1"

sudo docker run -d --name "$service-1" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \
-e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/delivery" \
-e "spring.redis.host: redis" \
-e "spring.kafka.host: kafka1" \
-e "spring.kafka.port: 19092" \
-e "spring.redis.host=redis" \
-e "spring.kafka.host=kafka1" \
-e "spring.kafka.port=19092" \
$service:$version
echo "successfully run!"
sudo docker stop "$service-2"
Expand Down
12 changes: 6 additions & 6 deletions robot-service/deploy/run_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ sudo docker build -t $service:$version .
echo "build"
sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \
-e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/robot" \
-e "spring.redis.host: redis" \
-e "spring.kafka.host: kafka1" \
-e "spring.kafka.port: 19092" \
-e "spring.redis.host=redis" \
-e "spring.kafka.host=kafka1" \
-e "spring.kafka.port=19092" \
$service:$version
echo "successfully run!"
sudo docker stop "$service-1"
sudo docker rm "$service-1"

sudo docker run -d --name "$service-1" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \
-e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/robot" \
-e "spring.redis.host: redis" \
-e "spring.kafka.host: kafka1" \
-e "spring.kafka.port: 19092" \
-e "spring.redis.host=redis" \
-e "spring.kafka.host=kafka1" \
-e "spring.kafka.port=19092" \
$service:$version
echo "successfully run!"
sudo docker stop "$service-2"
Expand Down
2 changes: 1 addition & 1 deletion worker-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.example'
version = '1.0.1'
version = '1.0.2'

java {
sourceCompatibility = '11'
Expand Down
12 changes: 6 additions & 6 deletions worker-service/deploy/run_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ sudo docker build -t $service:$version .
echo "build"
sudo docker run -d --name "$service-2" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \
-e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/picker" \
-e "spring.redis.host: redis" \
-e "spring.kafka.host: kafka1" \
-e "spring.kafka.port: 19092" \
-e "spring.redis.host=redis" \
-e "spring.kafka.host=kafka1" \
-e "spring.kafka.port=19092" \
$service:$version
echo "successfully run!"
sudo docker stop "$service-1"
Expand All @@ -18,9 +18,9 @@ sudo docker image prune

sudo docker run -d --name "$service-1" --network logicarrier-network -e "eureka.client.serviceUrl.defaultZone=http://discovery-service:8761/eureka/" \
-e "spring.datasource.url=jdbc:mysql://logicarrier-db:3306/picker" \
-e "spring.redis.host: redis" \
-e "spring.kafka.host: kafka1" \
-e "spring.kafka.port: 19092" \
-e "spring.redis.host=redis" \
-e "spring.kafka.host=kafka1" \
-e "spring.kafka.port=19092" \
$service:$version
echo "successfully run!"
sudo docker stop "$service-2"
Expand Down

0 comments on commit 658aca8

Please sign in to comment.