chore(build): drop the native-image config files Quarkus overwrites (#4632)

* chore(build): drop the native-image config files Quarkus overwrites

Quarkus writes its own reflect-config.json and resource-config.json to the same paths in the runner jar, so these two never reached the native image. Their 388 docker-java entries disagreed with DockerJavaNativeSupport. A native build without them generates the same configs.

* chore(docker): say why the docker-java command classes in the list stay registered

They are the request bodies Jackson serializes. The comment said commands need no registration, which invites pruning them.
This commit is contained in:
TATSUNO “Taz” Yasuhiro authored and GitHub committed 2026-09-30 23:29:55 -05:00
1 parent 4f2f494442
commit 37f3ebd8e8
3 files changed
+2 -2499

No files matched your search

@@ -6,7 +6,8 @@ import io.quarkus.runtime.annotations.RegisterForReflection;
* Registers the docker-java classes that Jackson reads or writes for GraalVM native image reflection.
* These are the model and the Jackson-annotated classes that the Docker commands Floci runs reach,
* as responses, request bodies or config files. A new command may need its classes added here.
* Commands and their executors are created with new, so they need no registration.
* The core.command classes listed here are request bodies. Jackson reads their fields, so keep them.
* Other commands and all executors are created with new and need no registration.
*/
@RegisterForReflection(classNames = {
"com.github.dockerjava.api.command.CreateContainerResponse",