I'm deploying a web-app requring Wildfly 10.1.0 with a cunstomized configuration like new Infinispan cache-containres/caches, etc. Given that the build tool is maven, I thought to delliver a Docker image, built from the Wildfly 10.1.0 image, that I modify in order to add the required elememnts. I thought to use jboss-cli to perform this modifications.
Accordingly, I'm using the docker maven plugin to perform the following steps:
Once that the docker container is running, the wildfly app server runs inside it and the deployed EAR is available to the user.
The problem is that, as you might have guessed, in the build phase, when jboss-cli is supposed to run, the Wildfly server doesn't run yet. It will only run once the container is started. But starting the container will raises exceptions due to the fact that the deployed EAR deosn't find what it needs to start.
Is there any simple way to modify a standalone.xml file without having to run jboss-cli ? Or is there any way to run jboss-cli against an off-line Wildfly server ?
Many thanks in advance,