From cd128c3b88ed0d45d0de4c58b0e1ca2364d48794 Mon Sep 17 00:00:00 2001 From: Artem Sidorkin Date: Fri, 26 Mar 2021 18:31:02 +0300 Subject: [PATCH] Added cdc restart after db id migration. See: https://github.com/eventuate-tram/eventuate-tram-examples-customers-and-orders/issues/84 --- _build-and-test-all.sh | 4 +++- docker-compose-mysql.yml | 6 +++--- docker-compose-postgres.yml | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/_build-and-test-all.sh b/_build-and-test-all.sh index 5cb504a5..c709ab48 100755 --- a/_build-and-test-all.sh +++ b/_build-and-test-all.sh @@ -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 diff --git a/docker-compose-mysql.yml b/docker-compose-mysql.yml index 15cb4d51..9b81847d 100755 --- a/docker-compose-mysql.yml +++ b/docker-compose-mysql.yml @@ -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: @@ -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: @@ -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: diff --git a/docker-compose-postgres.yml b/docker-compose-postgres.yml index e8515895..56f9c52e 100755 --- a/docker-compose-postgres.yml +++ b/docker-compose-postgres.yml @@ -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: @@ -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: @@ -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: