Upgrade Native Image Containerization workshop (what-the-dickens) to GraalVM for JDK 24.#26
Conversation
0f9179f to
b152d23
Compare
| </parent> | ||
| <groupId>com.example</groupId> | ||
| <artifactId>What_the_Dickens</artifactId> | ||
| <artifactId>what_the_dickens</artifactId> |
There was a problem hiding this comment.
I changed the artifactId for lowercase.
Otherwise, Paketo Buildpacks build fails with:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.5:build-image (default-cli) on project What_the_Dickens: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.0.5:build-image failed: Unable to parse name "What_the_Dickens". Image name must be in the form '[domainHost:port/][path/]name', with 'path' and 'name' containing only [a-z0-9][.][_][-] -> [Help 1]
| </build> | ||
| </profile> | ||
| <profile> | ||
| <id>mostly-static</id> |
There was a problem hiding this comment.
I added a separate profile to test this Docker build with a GitHub workflow pipeline. No changes were required to the text in README. I only updated the Maven build command in native-image/what-the-dickens/lab/02-smaller-containers/Dockerfile to RUN ./mvnw --no-transfer-progress -Pnative,mostly-static -DskipTests=true clean package.
3a0aaca to
f5edfa3
Compare
| Stop the application before you move on, using Ctrl-C. | ||
| 6. Stop the application before you move on as before (type `fg` and then Ctrl-C). | ||
|
|
||
| ## **STEP 3**: Reducing the Startup Time of Your Native Executable |
There was a problem hiding this comment.
This step doesn't work (and it isn't being tested with GitHub workflow).
Since the intialization strategy evolved in Native Image since JDK 17, --initialize-at-build-time=com.example.DickensController,rita.RiMarkov,rita.Util,rita.Tokenizer,rita.RiTa causes the build to fail. I need to spend more time on this step. Or we just remove it all together and don't promote class initialization options.
bb20163 to
ccd6a7b
Compare
dab1b1f to
20b05e7
Compare
There is no Luna Labs version of this workshop.