Hi, I guess it’s related to the change I’m preparing on the main.
You can now pass system env/system properties to karaf like this: bin/karaf -Dpid.prop=value Or Export pid.prop=value Or simple prop=value If Karaf main "detects" pid.prop=value format, it provision cfg file with it. It’s convenient in Docker environment. Regards JB > Le 30 août 2020 à 11:55, Steinar Bang <[email protected]> a écrit : > >>>>>> Jean-Baptiste Onofre <[email protected]>: > >> System.getEnv() should be used now directly in your bundles. > >> I will test it but pretty sure I’m using it in instance service. > > Thanks! > > The question is for a DS component that is to be configured by an > environment variable, when starting up a karaf application in a docker > container. > > I have used the environment-variable-in-config-file earlier, but I > thought I might try a direct System.getEnv() and see if that's simpler. > > (I may go for the config file approach anyway. But for now I'm trying > this to see how it works out) >
