rename: artifactId mic-after-work-server-impl-quarkus-main → afterwork-server-impl-quarkus
Some checks failed
CI/CD Lions Pipeline / Build + Push + Deploy (push) Failing after 9s
Some checks failed
CI/CD Lions Pipeline / Build + Push + Deploy (push) Failing after 9s
- pom.xml artifactId - application.properties + application-prod.properties : DB_NAME default afterwork - src/main/docker/Dockerfile.* : refs images - Dockerfile racine ajouté (lionsctl pipeline : ubi8/openjdk-21:1.21, UID 1001) - Cohérence avec renaming Gitea repo lionsdev/afterwork-server-impl-quarkus
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Dockerfile for afterwork-server-impl-quarkus
|
||||||
|
# Used by lionsctl pipeline. Expects `mvn clean package -Pprod` to have produced target/quarkus-app/ (fast-jar).
|
||||||
|
FROM registry.access.redhat.com/ubi8/openjdk-21:1.21
|
||||||
|
|
||||||
|
ENV LANGUAGE='en_US:en'
|
||||||
|
|
||||||
|
COPY --chown=1001:1001 target/quarkus-app/lib/ /deployments/lib/
|
||||||
|
COPY --chown=1001:1001 target/quarkus-app/*.jar /deployments/
|
||||||
|
COPY --chown=1001:1001 target/quarkus-app/app/ /deployments/app/
|
||||||
|
COPY --chown=1001:1001 target/quarkus-app/quarkus/ /deployments/quarkus/
|
||||||
|
|
||||||
|
USER 1001
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
|
||||||
|
CMD curl -f http://localhost:8080/q/health/live || exit 1
|
||||||
|
|
||||||
|
ENTRYPOINT [ "java", "-jar", "/deployments/quarkus-run.jar" ]
|
||||||
2
pom.xml
2
pom.xml
@@ -2,7 +2,7 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>dev.lions</groupId>
|
<groupId>dev.lions</groupId>
|
||||||
<artifactId>mic-after-work-server-impl-quarkus-main</artifactId>
|
<artifactId>afterwork-server-impl-quarkus</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
#
|
#
|
||||||
# Then, build the image with:
|
# Then, build the image with:
|
||||||
#
|
#
|
||||||
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/mic-after-work-server-impl-quarkus-main-jvm .
|
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/afterwork-jvm .
|
||||||
#
|
#
|
||||||
# Then run the container using:
|
# Then run the container using:
|
||||||
#
|
#
|
||||||
# docker run -i --rm -p 8080:8080 quarkus/mic-after-work-server-impl-quarkus-main-jvm
|
# docker run -i --rm -p 8080:8080 quarkus/afterwork-jvm
|
||||||
#
|
#
|
||||||
# If you want to include the debug port into your docker image
|
# If you want to include the debug port into your docker image
|
||||||
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
|
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
# Then run the container using :
|
# Then run the container using :
|
||||||
#
|
#
|
||||||
# docker run -i --rm -p 8080:8080 quarkus/mic-after-work-server-impl-quarkus-main-jvm
|
# docker run -i --rm -p 8080:8080 quarkus/afterwork-jvm
|
||||||
#
|
#
|
||||||
# This image uses the `run-java.sh` script to run the application.
|
# This image uses the `run-java.sh` script to run the application.
|
||||||
# This scripts computes the command line to execute your Java application, and
|
# This scripts computes the command line to execute your Java application, and
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
#
|
#
|
||||||
# Then, build the image with:
|
# Then, build the image with:
|
||||||
#
|
#
|
||||||
# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/mic-after-work-server-impl-quarkus-main-legacy-jar .
|
# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/afterwork-legacy-jar .
|
||||||
#
|
#
|
||||||
# Then run the container using:
|
# Then run the container using:
|
||||||
#
|
#
|
||||||
# docker run -i --rm -p 8080:8080 quarkus/mic-after-work-server-impl-quarkus-main-legacy-jar
|
# docker run -i --rm -p 8080:8080 quarkus/afterwork-legacy-jar
|
||||||
#
|
#
|
||||||
# If you want to include the debug port into your docker image
|
# If you want to include the debug port into your docker image
|
||||||
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
|
# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
# Then run the container using :
|
# Then run the container using :
|
||||||
#
|
#
|
||||||
# docker run -i --rm -p 8080:8080 quarkus/mic-after-work-server-impl-quarkus-main-legacy-jar
|
# docker run -i --rm -p 8080:8080 quarkus/afterwork-legacy-jar
|
||||||
#
|
#
|
||||||
# This image uses the `run-java.sh` script to run the application.
|
# This image uses the `run-java.sh` script to run the application.
|
||||||
# This scripts computes the command line to execute your Java application, and
|
# This scripts computes the command line to execute your Java application, and
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
#
|
#
|
||||||
# Then, build the image with:
|
# Then, build the image with:
|
||||||
#
|
#
|
||||||
# docker build -f src/main/docker/Dockerfile.native -t quarkus/mic-after-work-server-impl-quarkus-main .
|
# docker build -f src/main/docker/Dockerfile.native -t quarkus/afterwork .
|
||||||
#
|
#
|
||||||
# Then run the container using:
|
# Then run the container using:
|
||||||
#
|
#
|
||||||
# docker run -i --rm -p 8080:8080 quarkus/mic-after-work-server-impl-quarkus-main
|
# docker run -i --rm -p 8080:8080 quarkus/afterwork
|
||||||
#
|
#
|
||||||
###
|
###
|
||||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10
|
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10
|
||||||
|
|||||||
@@ -10,11 +10,11 @@
|
|||||||
#
|
#
|
||||||
# Then, build the image with:
|
# Then, build the image with:
|
||||||
#
|
#
|
||||||
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/mic-after-work-server-impl-quarkus-main .
|
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/afterwork .
|
||||||
#
|
#
|
||||||
# Then run the container using:
|
# Then run the container using:
|
||||||
#
|
#
|
||||||
# docker run -i --rm -p 8080:8080 quarkus/mic-after-work-server-impl-quarkus-main
|
# docker run -i --rm -p 8080:8080 quarkus/afterwork
|
||||||
#
|
#
|
||||||
###
|
###
|
||||||
FROM quay.io/quarkus/quarkus-micro-image:2.0
|
FROM quay.io/quarkus/quarkus-micro-image:2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user