forked from microservices-patterns/ftgo-application
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded various Spring Cloud dependencies
- Loading branch information
Showing
17 changed files
with
143 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#! /bin/bash -e | ||
|
||
SNX=${1} | ||
SN=${SNX?} | ||
for SN in $* ; do | ||
|
||
./gradlew :${SN?}:assemble | ||
docker-compose build ${SN?} | ||
docker-compose up -d ${SN?} | ||
done | ||
|
||
docker-compose logs -f $* | ||
|
||
./gradlew :${SNX?}:assemble | ||
docker-compose build ${SN?} | ||
docker-compose up -d ${SN?} | ||
docker-compose logs -f ${SN?} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#! /bin/bash -e | ||
|
||
. ./set-env.sh | ||
|
||
./gradlew assemble | ||
|
||
docker-compose build | ||
|
||
. ./set-env.sh | ||
|
||
initializeDynamoDB() { | ||
echo preparing dynamodblocal table data | ||
cd dynamodblocal-init | ||
./create-dynamodb-tables.sh | ||
cd .. | ||
echo data is prepared | ||
} | ||
|
||
|
||
docker-compose down -v | ||
docker-compose up -d --build dynamodblocal mysql | ||
|
||
./wait-for-mysql.sh | ||
|
||
initializeDynamoDB | ||
|
||
docker-compose up -d | ||
|
||
./show-swagger-ui-urls.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
ftgo-order-service/src/integration-test/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
spring.application.name=ftgo-order-service | ||
|
||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.org.springframework.cloud.contract=DEBUG | ||
logging.level.io.eventuate=DEBUG | ||
spring.jpa.generate-ddl=true | ||
stubrunner.stream.enabled=false | ||
stubrunner.integration.enabled=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...c/main/java/net/chrisrichardson/ftgo/orderservice/domain/RestaurantNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.chrisrichardson.ftgo.orderservice.domain; | ||
|
||
public class RestaurantNotFoundException extends RuntimeException { | ||
public RestaurantNotFoundException(long restaurantId) { | ||
super("Restaurant not found with id " + restaurantId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
.../chrisrichardson/ftgo/restaurantorderservice/domain/RestaurantOrderNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.chrisrichardson.ftgo.restaurantorderservice.domain; | ||
|
||
public class RestaurantOrderNotFoundException extends RuntimeException { | ||
public RestaurantOrderNotFoundException(long orderId) { | ||
super("RestaurantOrder not found: " + orderId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.