Re: Running karaf with multiple ETC paths

2022-08-29 Thread Jean-Baptiste Onofré
Hi, That will work in dynamic mode. In static mode, you have to use system properties. Regards JB On Sat, Aug 27, 2022 at 12:23 PM Mark Derricutt wrote: > > Hrm, > > I modified config.properties to include ( and previously, custom.properties > which config includes) to: > > >

Re: Running karaf with multiple ETC paths

2022-08-27 Thread Mark Derricutt
That worked a charm! Cheers. I wonder if we should update https://karaf.apache.org/manual/latest/provisioning with some mention of this in the configuration file section, or maybe somewhere under "5.7.4. Instances and distributions goals” where it talks about the immutable static mode. Or

Re: Running karaf with multiple ETC paths

2022-08-27 Thread Jérémie
In static mode you should use this system property: https://github.com/apache/karaf/blob/main/services/staticcm/src/main/java/org/apache/karaf/services/staticcm/Activator.java#L33 Le sam. 27 août 2022, 12:23, Mark Derricutt a écrit : > Hrm, > > I modified config.properties to include ( and

Re: Running karaf with multiple ETC paths

2022-08-27 Thread Mark Derricutt
Hrm, I modified config.properties to include ( and previously, custom.properties which config includes) to: felix.fileinstall.dir= ${karaf.etc}, /tmp/etc but nothing from /tmp/etc got loaded/picked up as configuration. I’m running 4.4.1 static mode, which I guess is why “file watching”

Re: Running karaf with multiple ETC paths

2022-08-25 Thread Jean-Baptiste Onofré
You are welcome. Just let me know if you need help with that. Regards JB On Thu, Aug 25, 2022 at 9:26 AM Mark Derricutt wrote: > > On 25/08/2022 at 7:11:17 PM, Jean-Baptiste Onofré wrote: >> >> Hi Mark, >> >> Yes, it's possible. You can add a new path in etc/config.properties in >>

Re: Running karaf with multiple ETC paths

2022-08-25 Thread Mark Derricutt
On 25/08/2022 at 7:11:17 PM, Jean-Baptiste Onofré wrote: > Hi Mark, > > Yes, it's possible. You can add a new path in etc/config.properties in > felix.fileinstall.dir. > > Excellent! That looks like a better solution for what I’m after. Cheers JB! -- "Great artists are extremely selfish and

Re: Running karaf with multiple ETC paths

2022-08-25 Thread Jean-Baptiste Onofré
Hi Mark, Yes, it's possible. You can add a new path in etc/config.properties in felix.fileinstall.dir. You can also add your own property (like karaf.etc.my) or use explicit path in your feature. Regards JB On Thu, Aug 25, 2022 at 8:52 AM Mark Derricutt wrote: > > Hey all, > > Is it possible

Running karaf with multiple ETC paths

2022-08-25 Thread Mark Derricutt
Hey all, Is it possible to run Karaf with multiple configuration paths? I’m trying to build up a custom karaf distro to build into a docker image, and want to keep all our apps service config separate ( to be injected via a docker volume or something ) whilst maintaining any generated