Skip to content

Commit

Permalink
fix script to run with additional tools
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Dec 8, 2023
1 parent 257b729 commit 6dde781
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions docker-compose-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ services:
- microservice-network
environment:
SPRING_PROFILES_ACTIVE: native
SPRING_SECURITY_USER_NAME: dockerUser
SPRING_SECURITY_USER_PASSWORD: dockerSecret
labels:
logging: "promtail"
logging_jobname: "containerlogs"
Expand All @@ -140,7 +142,7 @@ services:
config-server:
condition: service_started
environment:
- SPRING_CONFIG_IMPORT=configserver:http://config-server:8888/
- SPRING_CONFIG_IMPORT=configserver:http://dockerUser:dockerSecret@config-server:8888/
- MANAGEMENT_ZIPKIN_TRACING_ENDPOINT=http://tempo:9411
restart: unless-stopped
labels:
Expand Down Expand Up @@ -174,7 +176,7 @@ services:
# - mongodb
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_CONFIG_IMPORT=configserver:http://config-server:8888/
- SPRING_CONFIG_IMPORT=configserver:http://dockerUser:dockerSecret@config-server:8888/
- SPRING_DATA_REDIS_HOST=redis
- MANAGEMENT_ZIPKIN_TRACING_ENDPOINT=http://tempo:9411/
restart: unless-stopped
Expand Down Expand Up @@ -207,7 +209,7 @@ services:
condition: service_started
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_CONFIG_IMPORT=configserver:http://config-server:8888/
- SPRING_CONFIG_IMPORT=configserver:http://dockerUser:dockerSecret@config-server:8888/
- MANAGEMENT_ZIPKIN_TRACING_ENDPOINT=http://tempo:9411
restart: unless-stopped
labels:
Expand Down Expand Up @@ -235,7 +237,7 @@ services:
condition: service_started
environment:
- SPRING_PROFILES_ACTIVE= docker
- SPRING_CONFIG_IMPORT=configserver:http://config-server:8888/
- SPRING_CONFIG_IMPORT=configserver:http://dockerUser:dockerSecret@config-server:8888/
- MANAGEMENT_ZIPKIN_TRACING_ENDPOINT=http://tempo:9411
restart: unless-stopped
labels:
Expand Down Expand Up @@ -263,7 +265,7 @@ services:
condition: service_started
environment:
- SPRING_PROFILES_ACTIVE= docker
- SPRING_CONFIG_IMPORT=configserver:http://config-server:8888/
- SPRING_CONFIG_IMPORT=configserver:http://dockerUser:dockerSecret@config-server:8888/
- MANAGEMENT_ZIPKIN_TRACING_ENDPOINT=http://tempo:9411
restart: unless-stopped
labels:
Expand Down Expand Up @@ -291,7 +293,7 @@ services:
condition: service_started
environment:
SPRING_PROFILES_ACTIVE: docker
SPRING_CONFIG_IMPORT: configserver:http://config-server:8888/
SPRING_CONFIG_IMPORT: configserver:http://dockerUser:dockerSecret@config-server:8888/
MANAGEMENT_ZIPKIN_TRACING_ENDPOINT: http://tempo:9411
labels:
logging: "promtail"
Expand Down
4 changes: 2 additions & 2 deletions test-em-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ then
docker compose -f docker-compose.yml up -d
fi

if [[ $@ == "start_all" ]]
if [[ $@ == *"setup"* ]]
then
echo "Restarting the test environment..."
echo "$ docker compose -f docker-compose-tools.yml down --remove-orphans -v"
Expand Down Expand Up @@ -414,7 +414,7 @@ then
fi


if [[ $@ == *"stop_all"* ]]
if [[ $@ == *"teardown"* ]]
then
echo "We are done, stopping the test environment..."
echo "$ docker compose -f docker-compose-tools.yml down --remove-orphans -v"
Expand Down

0 comments on commit 6dde781

Please sign in to comment.