Hello Good idea!
Shouldn't configadmin do it by default? Like dissect "KARAF_SSH_PORT" or similar env variables into: - prefix (KARAF_) - rejected - PID pointer (e.g., SSH → org.apache.karaf.shell) - property (e.g PORT → sshPort) ? This way it could be done in one place... Just my random observation, because I can't dig this problem further for now ;) regards Grzegorz Grzybek pon., 28 wrz 2020 o 10:51 Jean-Baptiste Onofre <j...@nanthrax.net> napisał(a): > Hi guys, > > In order to easily use Karaf in docker container, I created the following > PR: > > https://github.com/apache/karaf/pull/1203 < > https://github.com/apache/karaf/pull/1203> > > The purpose is allow use to override some configuration properties using > env variables. > > For instance, if you want to use 8102 instead of default 8101 ssh port > number, you can do: > > $ export KARAF_SSH_PORT=8102 > $ bin/karaf > > I listed the environment variables here: > > https://github.com/apache/karaf/blob/4eda325e73d1d7dfbc0508258bde582e93d4f05e/manual/src/main/asciidoc/user-guide/configuration.adoc > < > https://github.com/apache/karaf/blob/4eda325e73d1d7dfbc0508258bde582e93d4f05e/manual/src/main/asciidoc/user-guide/configuration.adoc > > > > I didn’t define environment variables for all properties. If you see some > properties that it would be interesting to override by env variables, > please let me know, I will update the PR. > > NB: I will also update pax* to use similar approach. > > Thoughts ? > > Regards > JB