diff --git a/README.adoc b/README.adoc index e90a4d9..3d7783b 100644 --- a/README.adoc +++ b/README.adoc @@ -31,8 +31,6 @@ First, generate the project from https://start.vertx.io: . Select the `JDK 11` JDK version . Click on generate and extract the content somewhere on your disk -image::using-maven.png[title="Generating a Maven Project", alt="Generating a Maven Project", align="center",width=80%] - Alternatively, open a terminal and run: [source,bash] @@ -66,8 +64,8 @@ endif::env-github[] The Docker build has two stages: -. Building the Maven project inside a `maven:3.6.3-openjdk-11` container -. Copying the output of the build in a `adoptopenjdk:11-jre-hotspot` container and configuring the entry point +. Building the Maven project inside a `maven:3.9.9-eclipse-temurin-11` container +. Copying the output of the build in a `eclipse-temurin:11` container and configuring the entry point The benefits of this approach are: @@ -92,8 +90,6 @@ First, generate the project from https://start.vertx.io: . Select the `JDK 11` JDK version . Click on generate and extract the content somewhere on your disk -image::using-gradle.png[title="Generating a Gradle Project", alt="Generating a Gradle Project", align="center",width=80%] - Alternatively, open a terminal and run: [source,bash] @@ -127,8 +123,8 @@ endif::env-github[] The Docker build has two stages: -. Building the Gradle project inside a `gradle:6.8.3-jdk11` container -. Copying the output of the build in a `adoptopenjdk:11-jre-hotspot` container and configuring the entry point +. Building the Gradle project inside a `gradle:8.1.1-jdk11` container +. Copying the output of the build in a `eclipse-temurin:11` container and configuring the entry point The benefits of this approach are: @@ -157,7 +153,7 @@ You should see messages like these on the console output: ---- HTTP server started on port 8888 -Mar 16, 2021 2:45:57 PM io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer +Dec 02, 2024 5:17:19 PM io.vertx.launcher.application.VertxApplication INFO: Succeeded in deploying verticle ---- diff --git a/docker-gradle/Dockerfile b/docker-gradle/Dockerfile index 642104d..2ed9e24 100644 --- a/docker-gradle/Dockerfile +++ b/docker-gradle/Dockerfile @@ -1,13 +1,13 @@ # 1st Docker build stage: build the project with Gradle -FROM gradle:6.8.3-jdk11 as builder +FROM gradle:8.11.1-jdk11 AS builder WORKDIR /project COPY . /project/ RUN gradle assemble --no-daemon # 2nd Docker build stage: copy builder output and configure entry point -FROM adoptopenjdk:11-jre-hotspot -ENV APP_DIR /application -ENV APP_FILE container-uber-jar.jar +FROM eclipse-temurin:11 +ENV APP_DIR=/application +ENV APP_FILE=container-uber-jar.jar EXPOSE 8888 diff --git a/docker-maven/Dockerfile b/docker-maven/Dockerfile index 4f169fd..4b490be 100644 --- a/docker-maven/Dockerfile +++ b/docker-maven/Dockerfile @@ -1,13 +1,13 @@ # 1st Docker build stage: build the project with Maven -FROM maven:3.6.3-openjdk-11 as builder +FROM maven:3.9.9-eclipse-temurin-11 AS builder WORKDIR /project COPY . /project/ RUN mvn package -DskipTests -B # 2nd Docker build stage: copy builder output and configure entry point -FROM adoptopenjdk:11-jre-hotspot -ENV APP_DIR /application -ENV APP_FILE container-uber-jar.jar +FROM eclipse-temurin:11 +ENV APP_DIR=/application +ENV APP_FILE=container-uber-jar.jar EXPOSE 8888 diff --git a/using-gradle.png b/using-gradle.png deleted file mode 100644 index 9bc46db..0000000 Binary files a/using-gradle.png and /dev/null differ diff --git a/using-maven.png b/using-maven.png deleted file mode 100644 index a2701f2..0000000 Binary files a/using-maven.png and /dev/null differ