diff --git a/.travis.yml b/.travis.yml index b1813dd..64ca9c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,4 @@ jdk: - oraclejdk8 services: - rabbitmq +install: mvn clean install -DskipDockerBuild diff --git a/account/account-web/src/main/resources/application.yml b/account/account-web/src/main/resources/application.yml index 2fe6a17..568a0b1 100644 --- a/account/account-web/src/main/resources/application.yml +++ b/account/account-web/src/main/resources/application.yml @@ -1,12 +1,6 @@ spring: profiles: active: development - cloud: - stream: - bindings: - output: - destination: account - contentType: 'application/json' server: port: 0 events: @@ -14,12 +8,24 @@ events: --- spring: profiles: development + cloud: + stream: + bindings: + output: + destination: account + contentType: 'application/json' --- spring: profiles: docker rabbitmq: host: ${DOCKER_IP:192.168.99.100} port: 5672 + cloud: + stream: + bindings: + output: + destination: account + contentType: 'application/json' eureka: client: service-url: @@ -38,6 +44,12 @@ eureka: --- spring: profiles: cloud + cloud: + stream: + bindings: + output: + destination: account + contentType: 'application/json' eureka: instance: hostname: ${vcap.application.uris[0]:localhost} diff --git a/account/account-worker/src/main/resources/application.yml b/account/account-worker/src/main/resources/application.yml index 474e20d..5e82abe 100644 --- a/account/account-worker/src/main/resources/application.yml +++ b/account/account-worker/src/main/resources/application.yml @@ -1,15 +1,6 @@ spring: profiles: active: development - cloud: - stream: - bindings: - input: - destination: account - group: account-group - contentType: 'application/json' - consumer: - durableSubscription: true server: port: 0 amazon: @@ -19,6 +10,15 @@ amazon: --- spring: profiles: development + cloud: + stream: + bindings: + input: + destination: account + group: account-group + contentType: 'application/json' + consumer: + durableSubscription: true --- spring: profiles: test @@ -31,6 +31,15 @@ spring: rabbitmq: host: ${DOCKER_IP:192.168.99.100} port: 5672 + cloud: + stream: + bindings: + input: + destination: account + group: account-group + contentType: 'application/json' + consumer: + durableSubscription: true eureka: client: service-url: @@ -43,6 +52,15 @@ eureka: --- spring: profiles: cloud + cloud: + stream: + bindings: + input: + destination: account + group: account-group + contentType: 'application/json' + consumer: + durableSubscription: true amazon: aws: access-key-id: ${AMAZON_AWS_ACCESS_KEY_ID:replace} diff --git a/order/order-web/src/main/resources/application.yml b/order/order-web/src/main/resources/application.yml index b90be1d..694c9bf 100644 --- a/order/order-web/src/main/resources/application.yml +++ b/order/order-web/src/main/resources/application.yml @@ -1,12 +1,6 @@ spring: profiles: active: development - cloud: - stream: - bindings: - output: - destination: order - contentType: 'application/json' server: port: 0 events: @@ -14,12 +8,24 @@ events: --- spring: profiles: development + cloud: + stream: + bindings: + output: + destination: order + contentType: 'application/json' --- spring: profiles: docker rabbitmq: host: ${DOCKER_IP:192.168.99.100} port: 5672 + cloud: + stream: + bindings: + output: + destination: order + contentType: 'application/json' eureka: client: service-url: @@ -38,6 +44,12 @@ eureka: --- spring: profiles: cloud + cloud: + stream: + bindings: + output: + destination: order + contentType: 'application/json' eureka: instance: hostname: ${vcap.application.uris[0]:localhost} diff --git a/order/order-worker/src/main/resources/application.yml b/order/order-worker/src/main/resources/application.yml index 392474b..487e2c1 100644 --- a/order/order-worker/src/main/resources/application.yml +++ b/order/order-worker/src/main/resources/application.yml @@ -1,15 +1,6 @@ spring: profiles: active: development - cloud: - stream: - bindings: - input: - contentType: 'application/json' - destination: order - group: order-group - consumer: - durableSubscription: true server: port: 0 amazon: @@ -19,12 +10,30 @@ amazon: --- spring: profiles: development + cloud: + stream: + bindings: + input: + contentType: 'application/json' + destination: order + group: order-group + consumer: + durableSubscription: true --- spring: profiles: docker rabbitmq: host: ${DOCKER_IP:192.168.99.100} port: 5672 + cloud: + stream: + bindings: + input: + contentType: 'application/json' + destination: order + group: order-group + consumer: + durableSubscription: true eureka: client: service-url: @@ -43,6 +52,15 @@ eureka: --- spring: profiles: cloud + cloud: + stream: + bindings: + input: + contentType: 'application/json' + destination: order + group: order-group + consumer: + durableSubscription: true amazon: aws: access-key-id: ${AMAZON_AWS_ACCESS_KEY_ID:replace} diff --git a/payment/payment-web/src/main/resources/application.yml b/payment/payment-web/src/main/resources/application.yml index 23778cc..a227103 100644 --- a/payment/payment-web/src/main/resources/application.yml +++ b/payment/payment-web/src/main/resources/application.yml @@ -1,12 +1,6 @@ spring: profiles: active: development - cloud: - stream: - bindings: - output: - contentType: 'application/json' - destination: payment server: port: 0 events: @@ -14,12 +8,24 @@ events: --- spring: profiles: development + cloud: + stream: + bindings: + output: + contentType: 'application/json' + destination: payment --- spring: profiles: docker rabbitmq: host: ${DOCKER_IP:192.168.99.100} port: 5672 + cloud: + stream: + bindings: + output: + contentType: 'application/json' + destination: payment eureka: client: service-url: @@ -38,6 +44,12 @@ eureka: --- spring: profiles: cloud + cloud: + stream: + bindings: + output: + contentType: 'application/json' + destination: payment eureka: instance: hostname: ${vcap.application.uris[0]:localhost} diff --git a/payment/payment-worker/src/main/resources/application.yml b/payment/payment-worker/src/main/resources/application.yml index 3e0286b..42ea3cb 100644 --- a/payment/payment-worker/src/main/resources/application.yml +++ b/payment/payment-worker/src/main/resources/application.yml @@ -1,15 +1,6 @@ spring: profiles: active: development - cloud: - stream: - bindings: - input: - contentType: 'application/json' - destination: payment - group: payment-group - consumer: - durableSubscription: true server: port: 0 amazon: @@ -19,12 +10,30 @@ amazon: --- spring: profiles: development + cloud: + stream: + bindings: + input: + contentType: 'application/json' + destination: payment + group: payment-group + consumer: + durableSubscription: true --- spring: profiles: docker rabbitmq: host: ${DOCKER_IP:192.168.99.100} port: 5672 + cloud: + stream: + bindings: + input: + contentType: 'application/json' + destination: payment + group: payment-group + consumer: + durableSubscription: true eureka: client: service-url: @@ -43,6 +52,15 @@ eureka: --- spring: profiles: cloud + cloud: + stream: + bindings: + input: + contentType: 'application/json' + destination: payment + group: payment-group + consumer: + durableSubscription: true eureka: instance: hostname: ${vcap.application.uris[0]:localhost} diff --git a/warehouse/warehouse-worker/src/main/resources/application.yml b/warehouse/warehouse-worker/src/main/resources/application.yml index 9bdb950..95316ec 100644 --- a/warehouse/warehouse-worker/src/main/resources/application.yml +++ b/warehouse/warehouse-worker/src/main/resources/application.yml @@ -1,6 +1,11 @@ spring: profiles: active: development +server: + port: 0 +--- +spring: + profiles: development cloud: stream: bindings: @@ -25,17 +30,36 @@ spring: consumer: durableSubscription: true concurrency: 5 -server: - port: 0 ---- -spring: - profiles: development --- spring: profiles: docker rabbitmq: host: ${DOCKER_IP:192.168.99.100} port: 5672 + cloud: + stream: + bindings: + warehouse: + contentType: 'application/json' + destination: warehouse + group: warehouse-group + consumer: + durableSubscription: true + concurrency: 5 + reservation: + contentType: 'application/json' + destination: reservation + group: reservation-group + consumer: + durableSubscription: true + concurrency: 5 + inventory: + contentType: 'application/json' + destination: inventory + group: inventory-group + consumer: + durableSubscription: true + concurrency: 5 eureka: client: service-url: @@ -54,6 +78,30 @@ eureka: --- spring: profiles: cloud + cloud: + stream: + bindings: + warehouse: + contentType: 'application/json' + destination: warehouse + group: warehouse-group + consumer: + durableSubscription: true + concurrency: 5 + reservation: + contentType: 'application/json' + destination: reservation + group: reservation-group + consumer: + durableSubscription: true + concurrency: 5 + inventory: + contentType: 'application/json' + destination: inventory + group: inventory-group + consumer: + durableSubscription: true + concurrency: 5 eureka: instance: hostname: ${vcap.application.uris[0]:localhost}