From 23781fb0b73f02621dd5165c1eff6aef86418954 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 18 Apr 2020 06:28:00 +0200 Subject: Remove unused Dockerfiles. Change-Id: I6a72d73863dbeffb55fe980d81146f21f158105c --- src/main/docker/Dockerfile.dev | 17 ----------------- src/main/docker/Dockerfile.jvm | 31 ------------------------------- src/main/docker/Dockerfile.native | 22 ---------------------- 3 files changed, 70 deletions(-) delete mode 100644 src/main/docker/Dockerfile.dev delete mode 100644 src/main/docker/Dockerfile.jvm delete mode 100644 src/main/docker/Dockerfile.native (limited to 'src/main') diff --git a/src/main/docker/Dockerfile.dev b/src/main/docker/Dockerfile.dev deleted file mode 100644 index 5560f64..0000000 --- a/src/main/docker/Dockerfile.dev +++ /dev/null @@ -1,17 +0,0 @@ -FROM gradle:6.1-jdk13 - -EXPOSE 8080 -USER gradle - -COPY --chown=gradle:gradle build.gradle gradle.properties settings.gradle /src/ - -WORKDIR /src -RUN gradle --no-daemon dependencies - -COPY --chown=gradle:gradle src /src/src -RUN gradle --no-daemon assemble -PskipWeb -PskipDocker - -ENV JAVA_TOOL_OPTIONS "-XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact" -#ENV GRADLE_OPTS "-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" - -ENTRYPOINT ["gradle", "quarkusDev"] diff --git a/src/main/docker/Dockerfile.jvm b/src/main/docker/Dockerfile.jvm deleted file mode 100644 index 3cfb947..0000000 --- a/src/main/docker/Dockerfile.jvm +++ /dev/null @@ -1,31 +0,0 @@ -#### -# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode -# -# Before building the docker image run: -# -# mvn package -# -# Then, build the image with: -# -# docker build -f src/main/docker/Dockerfile.jvm -t docker.benkard.de/mulk/mulkcms2 . -# -# Then run the container using: -# -# docker run -i --rm -p 8080:8080 docker.benkard.de/mulk/mulkcms2 -# -### -FROM adoptopenjdk:14-jre-hotspot - -RUN mkdir -p /deployments - -RUN useradd --user-group --uid 1200 java \ - && chown -R java /deployments \ - && chmod -R "g+rwX" /deployments \ - && chown -R java:java /deployments - -COPY target/lib/* /deployments/lib/ -COPY target/*-runner.jar /deployments/app.jar -EXPOSE 8080 - -USER java -ENTRYPOINT ["java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseShenandoahGC", "-XX:ShenandoahGCHeuristics=compact", "-Dquarkus.http.host=0.0.0.0", "-Djava.util.logging.manager=org.jboss.logmanager.LogManager", "-jar", "/deployments/app.jar"] diff --git a/src/main/docker/Dockerfile.native b/src/main/docker/Dockerfile.native deleted file mode 100644 index 1cb12dd..0000000 --- a/src/main/docker/Dockerfile.native +++ /dev/null @@ -1,22 +0,0 @@ -#### -# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode -# -# Before building the docker image run: -# -# mvn package -Pnative -Dquarkus.native.container-build=true -# -# Then, build the image with: -# -# docker build -f src/main/docker/Dockerfile.native -t quarkus/mulkcms2 . -# -# Then run the container using: -# -# docker run -i --rm -p 8080:8080 quarkus/mulkcms2 -# -### -FROM registry.access.redhat.com/ubi8/ubi-minimal -WORKDIR /work/ -COPY build/*-runner /work/application -RUN chmod 775 /work -EXPOSE 8080 -CMD ["./application", "-Dquarkus.http.host=0.0.0.0"] \ No newline at end of file -- cgit v1.2.3