-
Feature Request
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
Compatibility/Configuration
I want to make a suggestion regarding the possibility to run wildfly with partial configuraiton files.
I use Wildfly with Docker in many projects. Mostly I need to add JDBC Pools and security config.
To build a new Docker image I have have to customize the standalone.xml file or standalone-microprofile.xml file and add this in my Dockerfile. See also my example in my blog.
It would be fine if Wildfly provides a simmilar feature like OpenLiberty that I only provide the part I am interesting in and this part is merged during startup. So for example a JDBC config file would simple look like this:
<subsystem xmlns="urn:jboss:domain:datasources:6.0"> <datasources> <!-- my datasource --> <datasource jta="true" jndi-name="java:/jdbc/office" pool-name="mydb" enabled="true" use-ccm="true"> <connection-url>${env.POSTGRES_CONNECTION}</connection-url> <driver-class&gt;org.postgresql.Driver</driver-class&gt; <driver>postgresql</driver> <security> <user-name>${env.POSTGRES_USER}</user-name> <password>${env.POSTGRES_PASSWORD}</password> </security> </datasource> <drivers> <!-- my driver --> <driver name="postgresql" module="org.postgresql"> <driver-class&gt;org.postgresql.Driver</driver-class&gt; </driver> </drivers> </datasources> </subsystem>
The datasoruce and driver is merged into the origin file.
In this way users could easily upgrade the wildfly version. Currently it is necessary to copy the new standalone.xml file and customize it again.
What do you think about that feature?
- is related to
-
WFCORE-5343 Support for configuration customization using YAML
- Closed