File tree Expand file tree Collapse file tree 10 files changed +14
-151
lines changed Expand file tree Collapse file tree 10 files changed +14
-151
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,9 @@ All the services' business logic is implemented using Domain-Driven design aggre
110
110
111
111
=== Pre-requisites
112
112
113
- * Java 8
113
+ * Java 8+
114
114
* Docker and Docker Compose
115
115
* Internet access so that Gradle and Docker can download dependencies and container images
116
- * The link:./ftgo-order-history-service[ftgo-order-history-service] uses AWS DynamoDB and so requires an access key and secret.
117
116
118
117
=== Building
119
118
@@ -150,12 +149,6 @@ docker-compose up -d
150
149
151
150
This can take a while.
152
151
153
- You also need to initialize the locally running DynamoDB by running:
154
-
155
- ```
156
- ./gradlew initDynamoDb
157
- ```
158
-
159
152
=== Using the application
160
153
161
154
Use the services Swagger UIs to invoke the services.
Original file line number Diff line number Diff line change 2
2
3
3
KEEP_RUNNING=
4
4
ASSEMBLE_ONLY=
5
+ DATABASE_SERVICES=" dynamodblocal mysql dynamodblocal-init"
5
6
6
7
if [ -z " $DOCKER_COMPOSE " ] ; then
7
8
DOCKER_COMPOSE=docker-compose
@@ -34,14 +35,12 @@ echo KEEP_RUNNING=$KEEP_RUNNING
34
35
./gradlew testClasses
35
36
36
37
${DOCKER_COMPOSE?} down --remove-orphans -v
37
- ${DOCKER_COMPOSE?} up -d --build dynamodblocal mysql
38
+ ${DOCKER_COMPOSE?} up -d --build ${DATABASE_SERVICES?}
38
39
39
40
./gradlew waitForMySql
40
41
41
42
echo mysql is started
42
43
43
- ./gradlew initDynamoDb
44
-
45
44
${DOCKER_COMPOSE?} up -d --build eventuate-local-cdc-service tram-cdc-service
46
45
47
46
@@ -62,29 +61,25 @@ if [ -z "$ASSEMBLE_ONLY" ] ; then
62
61
63
62
${DOCKER_COMPOSE?} down --remove-orphans -v
64
63
65
- ${DOCKER_COMPOSE?} up -d dynamodblocal mysql
64
+ ${DOCKER_COMPOSE?} up -d ${DATABASE_SERVICES?}
66
65
67
66
./gradlew waitForMySql
68
67
69
68
echo mysql is started
70
69
71
- ./gradlew initDynamoDb
72
-
73
70
${DOCKER_COMPOSE?} up -d
74
71
75
72
76
73
else
77
74
78
75
./gradlew $* assemble
79
76
80
- ${DOCKER_COMPOSE?} up -d --build dynamodblocal mysql
77
+ ${DOCKER_COMPOSE?} up -d --build ${DATABASE_SERVICES?}
81
78
82
79
./gradlew waitForMySql
83
80
84
81
echo mysql is started
85
82
86
- ./gradlew initDynamoDb
87
-
88
83
${DOCKER_COMPOSE?} up -d --build
89
84
90
85
fi
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ buildscript {
7
7
}
8
8
9
9
apply plugin : WaitForMySqlPlugin
10
- apply plugin : InitDynamoDbPlugin
11
10
}
12
11
13
12
plugins {
@@ -39,4 +38,3 @@ subprojects {
39
38
}
40
39
41
40
}
42
-
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ services:
155
155
- zookeeper
156
156
- tram-cdc-service
157
157
- dynamodblocal
158
+ - dynamodblocal-init
158
159
environment :
159
160
SPRING_DATASOURCE_URL : jdbc:mysql://mysql/ftgoorderhistoryservice
160
161
SPRING_DATASOURCE_USERNAME : mysqluser
Original file line number Diff line number Diff line change 12
12
"clean" : " rm -fr dist"
13
13
},
14
14
"dependencies" : {
15
+ "@types/graphql" : " ^14.0.0" ,
15
16
"apollo-cache-inmemory" : " ^1.2.1" ,
16
17
"apollo-client" : " ^2.3.1" ,
17
18
"apollo-engine" : " ^1.0.1" ,
Original file line number Diff line number Diff line change @@ -8,5 +8,8 @@ dependencies {
8
8
9
9
testCompile " org.springframework.boot:spring-boot-starter-test:$springBootVersion "
10
10
11
-
12
- }
11
+ runtime " javax.xml.bind:jaxb-api:2.2.11"
12
+ runtime " com.sun.xml.bind:jaxb-core:2.2.11"
13
+ runtime " com.sun.xml.bind:jaxb-impl:2.2.11"
14
+ runtime " javax.activation:activation:1.1.1"
15
+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ spring.application.name=ftgo-order-service
3
3
logging.level.root =INFO
4
4
logging.level.org.hibernate.SQL =DEBUG
5
5
logging.level.org.springframework.cloud.contract =DEBUG
6
- logging.level.io.eventuate = DEBUG
6
+ logging.level.io.eventuate.tram = TRACE
7
7
# logging.level.org.springframework.orm.jpa.JpaTransactionManager=TRACE
8
8
9
9
spring.jpa.generate-ddl =true
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ spring.sleuth.web.skipPattern=(^health.*)
5
5
6
6
management.endpoints.web.exposure.include =health,prometheus
7
7
8
- logging.level.org.springframework.cloud =DEBUG
8
+ logging.level.org.springframework.cloud =INFO
9
9
10
10
spring.jpa.generate-ddl =true
11
11
logging.level.org.springframework.orm.jpa =INFO
You can’t perform that action at this time.
0 commit comments