From 08f187e410e9d8227fd06497ccca80dd2d57cded Mon Sep 17 00:00:00 2001 From: JaninduMunasinghe Date: Sat, 12 Jul 2025 11:32:56 +0530 Subject: [PATCH 1/2] Dockerize publisher app --- publisher/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 publisher/Dockerfile diff --git a/publisher/Dockerfile b/publisher/Dockerfile new file mode 100644 index 0000000..a0cc7ca --- /dev/null +++ b/publisher/Dockerfile @@ -0,0 +1,14 @@ +# Use an official OpenJDK image as a base +FROM eclipse-temurin:21-jre + +# Set the working directory +WORKDIR /app + +# Copy the built jar file into the container +COPY target/publisher-0.0.1-SNAPSHOT.jar app.jar + +# Expose the application port +EXPOSE 9219 + +# Run the application +ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file From 235e04bde0a3ac83f241bfb50212890420d39075 Mon Sep 17 00:00:00 2001 From: JaninduMunasinghe Date: Sat, 12 Jul 2025 11:44:45 +0530 Subject: [PATCH 2/2] Dockerize consumer app --- consumer/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 consumer/Dockerfile diff --git a/consumer/Dockerfile b/consumer/Dockerfile new file mode 100644 index 0000000..5570f26 --- /dev/null +++ b/consumer/Dockerfile @@ -0,0 +1,14 @@ +# Use an official OpenJDK image as a base +FROM eclipse-temurin:21-jre + +# Set the working directory +WORKDIR /app + +# Copy the built jar file into the container +COPY target/consumer-0.0.1-SNAPSHOT.jar app.jar + +# Expose the application port +EXPOSE 9229 + +# Run the application +ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file