Having yet another copy of standalone.xml is too hard to maintain. We could use jboss cli script for it. CLI recipes. This will also help to identify what customization is needed for Zanata to run.
jndi binding (to support old zanata deployments
We need to boot up wildfly during image creation (with RUN instruction) and then run the CLI script. After that we stop the server and clean up. Zanata sync is using it and it seems to be working fine.
Try to use offline/embedded mode
I think I prefer templating overall for managing all the standalone.xml files (long term), but jboss-cli might be more pragmatic for this case in the short term.
If we are going to use jboss-cli for this sort of thing, we should make sure to use the CLI's offline/embedded mode: