Files
floci/docker
Anders Wasen b30cf85e6b chore(docker): add Dockerfile.jvm-package for the local dev loop (#3425)
* chore(docker): add Dockerfile.jvm-package for the local dev loop

docker/Dockerfile runs Maven inside the build, so it re-resolves every dependency and wants
a couple of gigabytes. Iterating on a change through it is slow and can fall over on a
machine with little headroom.

This is the JVM counterpart to Dockerfile.native-package: it consumes the target/quarkus-app
an ordinary ./mvnw package already produced, which takes seconds. The runtime half is
identical to stage 2 of docker/Dockerfile, which stays the canonical definition.

* fix(docker): mirror the canonical runtime stage in Dockerfile.jvm-package

The new file said it mirrored stage 2 of docker/Dockerfile and did not. It dropped the
EXPOSE 6379-6399 block, which exists for the docker-java compatibility workaround in #2095,
so an image that looked equivalent published a different port set to anything reading image
metadata for those dynamically assigned Redis and ElastiCache ports.

Two smaller divergences went with it: an explicit bash install, which is redundant because
eclipse-temurin:25-jre-noble already ships bash 5.2.21, and a cli_follow_urlparam setting
that belongs to the canonical file and is not there yet.

The runtime stanza is now a copy of the canonical one with exactly two lines changed, the
version default and where the application directory is copied from, and
DockerfileRuntimeParityTest holds it there: it compares the two stages line for line,
comments included, and allows only those two substitutions. Removing a single EXPOSE line
fails it with the line that drifted.
2026-09-16 00:28:37 -05:00
..