From 37824cef004d78240d4391e5bdaef3afef90741a Mon Sep 17 00:00:00 2001 From: Piotr Piotrowski Date: Thu, 26 Oct 2023 23:40:40 +0200 Subject: [PATCH] Add dockerfile for compatibility tests (#1024) --- Dockerfile.compat | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile.compat diff --git a/Dockerfile.compat b/Dockerfile.compat new file mode 100644 index 000000000..f2df67257 --- /dev/null +++ b/Dockerfile.compat @@ -0,0 +1,9 @@ +FROM gradle:6-jdk11 AS build +COPY --chown=gradle:gradle . /home/gradle/src +WORKDIR /home/gradle/src +RUN gradle clean compileTestJava --no-daemon + +FROM openjdk:11-jre-slim +RUN mkdir /app +COPY --from=build /home/gradle/src/build/classes/java /app +ENTRYPOINT ["java", "--class-path=/app/main:/app/test", "io.nats.compatibility.ClientCompatibilityMain"] \ No newline at end of file