Open sfcoy opened 6 years ago
Hi @sfcoy, (I'm not the owner of this project, I'm just watching it)
is it possible tu use env or system properties in password
and connection-url
with this approach?
I know that WildFly does support ${username}
style variable expansion, but I've not tried the ${env.USERNAME} approach.
There is no need to start WildFly up in order to set up a data source.
Create a cli script named
install-ds.cli
similar to:and add the following fragment to your Dockerfile:
Adjust for the version of the driver and actual datasource names that you want. I don't bother with adding a module for the driver because it adds unnecessary complexity.
Cheers,
@sfcoy