This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
java-microprofile: what server config artifacts should be copied into the deployment image? #521
Labels
stack/java-openliberty
Issues related to java-openliberty stack
Summary
The current
appsody build
builds the entire target server config directory into the Docker image, via:mv wlp/usr/servers/*/* /config/
On the other hand, the updated "getting started" guide only copies the src config directory, using:
ADVANTAGES / DISADVANTAGES
By copying the target server config dir, we allow any config generation/merge done by the liberty-maven-plugin to take effect. E.g. the merge of POM properties, plugin config (inline and pointing to external files), -Dx=y..
By copying the server config contents from src, we avoid an issue like:
#516
where a "local dev" config artifact like server.env gets built into the image, though it shouldn't.
As the resolution of #516 shows, a solution here is to use appsody commands to structure your local dev (
appsody run/test/debug
) differently. But we still have to decide if this should be the user's responsibility.Finally, I'm not sure what the overlap is precisely yet, but the issue #364 is also relevant.
The text was updated successfully, but these errors were encountered: