avaje / avaje-config

Application configuration / properties loading for JVM applications
https://avaje.io/config
Apache License 2.0
47 stars 7 forks source link

Add automatic detection of ${docker.host} #110

Closed rob-bygrave closed 7 months ago

rob-bygrave commented 7 months ago

Based on docker-in-docker and operating system detection.

Also sets as a system property via: System.setProperty("docker.host", dockerHost);

The motivation for this is to assist testing / component testing when using docker containers and potentially running docker-in-docker (in CI builds). This logic is contributed from ebean-test-containers, adding it to avaje-config can help more generally.