orangy
dave08
04/23/2018, 10:21 AM${...}
to make a placeholder for the env var... It would be nice to have every env var with a certain prefix to work similarly to java system props in that lib... like in my example code.
Then I would just use HOCON for defaults that are included in the Docker image and doesn't change on my staging or production branches in my CI/CD. But in my Docker Swarm service definition, I would override any of the necessary values w/ corresponding env vars...dave08
04/23/2018, 10:44 AMApplicationConfig
interface and all as a wrapper for the lib because you might replace or add features to it? It seems like the lib itself is pretty powerful as is, it's just a pity it's missing this feature...orangy
config.get<MyConfigurationClass>()
.dave08
04/23/2018, 12:40 PMorangy
dave08
04/23/2018, 12:46 PMorangy
orangy
dave08
04/23/2018, 1:04 PMDockerfile
with the `ENV`s, and it'll be two lines in HOCON, one for the default, and one for the override w/ env var...orangy
${?FORCED_BASEDIR : "default"}
to HOCON? 🙂dave08
04/23/2018, 1:13 PM