Skip to content

Commit

Permalink
Add dockerfile for compatibility tests
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <[email protected]>
  • Loading branch information
piotrpio committed Oct 26, 2023
1 parent 057e0f4 commit 77d0abd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/io/nats/compatibility/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 77d0abd

Please sign in to comment.