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
- kafka
take-order:
- image: trion/take-order-service:0
+ image: trion/take-order-service:01
hostname: take-order
ports:
- "8091:8080"
<groupId>de.trion.kafka.microservices</groupId>
<artifactId>order-example</artifactId>
<name>Order Example</name>
- <version>0-SNAPSHOT</version>
+ <version>01</version>
<packaging>pom</packaging>
<properties>
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 []
"namespace": "de.trion.microservices.avro",
"type": "enum",
"name": "OrderState",
- "symbols" : ["CREATED", "VALIDATED", "INVALID"]
+ "symbols" : ["CREATED"]
},
{
"namespace": "de.trion.microservices.avro",
<parent>
<groupId>de.trion.kafka.microservices</groupId>
<artifactId>order-example</artifactId>
- <version>0-SNAPSHOT</version>
+ <version>01</version>
</parent>
<groupId>de.trion.kafka.microservices</groupId>
<artifactId>take-order</artifactId>
<name>Take Order Service</name>
- <version>0-SNAPSHOT</version>
+ <version>01</version>
<properties>
<avro.version>1.9.0</avro.version>