Skip to content

Commit

Permalink
Added cdc restart after db id migration. See: eventuate-tram/eventuat…
Browse files Browse the repository at this point in the history
  • Loading branch information
dartartem committed Mar 26, 2021
1 parent c4f1e61 commit cd128c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion _build-and-test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ ${dockerall}Up

./wait-for-services.sh localhost readers/${READER}/finished "8099"

compose="docker-compose -f docker-compose-${DATABASE}.yml "

$compose stop cdc-service
curl -s https://raw.githubusercontent.com/eventuate-foundation/eventuate-common/master/migration/db-id/migration.sh &> /dev/stdout | bash

$compose start cdc-service

${dockerall}Up -P envFile=docker-compose-env-files/db-id-gen.env

Expand Down
6 changes: 3 additions & 3 deletions docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
build:
context: ./order-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8081:8080"
depends_on:
Expand All @@ -31,7 +31,7 @@ services:
build:
context: ./customer-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8082:8080"
depends_on:
Expand All @@ -54,7 +54,7 @@ services:
build:
context: ./api-gateway-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8083:8080"
environment:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
build:
context: ./order-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8081:8080"
depends_on:
Expand All @@ -28,7 +28,7 @@ services:
build:
context: ./customer-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8082:8080"
depends_on:
Expand All @@ -48,7 +48,7 @@ services:
build:
context: ./api-gateway-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION?}
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8083:8080"
environment:
Expand Down

0 comments on commit cd128c3

Please sign in to comment.