From: Kai Moritz Date: Sun, 7 Jun 2020 09:33:08 +0000 (+0200) Subject: streams - Übungen - Microservices - Schritt 01 X-Git-Tag: tmp~16 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=10e9198de0f46c1ed7d9c574288eb7deb368ee68;p=demos%2Fmicroservices streams - Übungen - Microservices - Schritt 01 -- Release für take-order:01 --- diff --git a/README.sh b/README.sh index 158dff3..9ee841e 100755 --- a/README.sh +++ b/README.sh @@ -11,7 +11,7 @@ trap 'kill $(jobs -p)' EXIT mvn package -docker build -t trion/take-order-service:0 take-order +docker build -t trion/take-order-service:01 take-order docker-compose up -d zookeeper kafka schema-registry diff --git a/docker-compose.yml b/docker-compose.yml index c9ef2c4..0e632a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,7 +33,7 @@ services: - kafka take-order: - image: trion/take-order-service:0 + image: trion/take-order-service:01 hostname: take-order ports: - "8091:8080" diff --git a/pom.xml b/pom.xml index 1753f10..478a9cc 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ de.trion.kafka.microservices order-example Order Example - 0-SNAPSHOT + 01 pom diff --git a/take-order/Dockerfile b/take-order/Dockerfile index cd7c3ad..c30116e 100644 --- a/take-order/Dockerfile +++ b/take-order/Dockerfile @@ -1,5 +1,5 @@ FROM openjdk:8-jre-slim -COPY target/take-order-0-SNAPSHOT.jar /opt/ +COPY target/take-order-01.jar /opt/ EXPOSE 8080 -ENTRYPOINT [ "java", "-jar", "/opt/take-order-0-SNAPSHOT.jar" ] +ENTRYPOINT [ "java", "-jar", "/opt/take-order-01.jar" ] CMD [] diff --git a/take-order/order.avsc b/take-order/order.avsc index 6879085..21ffd90 100644 --- a/take-order/order.avsc +++ b/take-order/order.avsc @@ -3,7 +3,7 @@ "namespace": "de.trion.microservices.avro", "type": "enum", "name": "OrderState", - "symbols" : ["CREATED", "VALIDATED", "INVALID"] + "symbols" : ["CREATED"] }, { "namespace": "de.trion.microservices.avro", diff --git a/take-order/pom.xml b/take-order/pom.xml index 016d3c6..067a8da 100644 --- a/take-order/pom.xml +++ b/take-order/pom.xml @@ -5,13 +5,13 @@ de.trion.kafka.microservices order-example - 0-SNAPSHOT + 01 de.trion.kafka.microservices take-order Take Order Service - 0-SNAPSHOT + 01 1.9.0