Re: Doc of environment variables to modify docker images?

2021-06-19 Thread Steinar Bang
> Jean-Baptiste Onofre :

> Hi Steinar,
> With Karaf 4.3.x, you can now use "implicit" env variable.

> It’s documented here:

> http://karaf.apache.org/manual/latest/#_environment_variables_system_properties
>  
> 

Hm... I read that part yesterday, but didn't understand it...?

> It means you can set features repositories with:

> export 
> ORG_APACHE_KARAF_FEATURES_FEATURESREPOSITORIES='${featuresRepositories},mvn:org.apache.karaf.decanter/apache-karaf-decanter/2.5.0/xml/features'

Ah, I think I understand now: there is a convention for naming
environment variables, so that they can replace any config value?

I.e. take the config value , prefix with
ORG_APACHE_KARAF_FEATURES_ and uppercase it, ending up with
ORG_APACHE_KARAF_FEATURES_SOMECONFIGVALUE?

I will try!

Thanks!



Re: Doc of environment variables to modify docker images?

2021-06-19 Thread Jean-Baptiste Onofre
Hi Steinar,

With Karaf 4.3.x, you can now use "implicit" env variable.

It’s documented here:

http://karaf.apache.org/manual/latest/#_environment_variables_system_properties 


It means you can set features repositories with:

export 
ORG_APACHE_KARAF_FEATURES_FEATURESREPOSITORIES='${featuresRepositories},mvn:org.apache.karaf.decanter/apache-karaf-decanter/2.5.0/xml/features'

For instance

Regards
JB

> Le 19 juin 2021 à 12:07, Steinar Bang  a écrit :
> 
> I'm in the process of moving my karaf based docker images from karaf
> 4.2.8 to karaf 4.3.2.
> 
> I'm trying to find the enviroment variables that will let me add maven
> repositories, feature repositories and boot features, without copying
> the files from the distro and modifying them.
> 
> But I haven't been able to google up these variables.
> 
> Is there a list of these variables somewhere?
> 
> (I thought they might be implemented by using ${env:xxx} in the .cfg
> files, but there aren't any usage of "env:" in the etc directory of
> karaf 4.3.2)
> 
> Thanks!
> 
> 
> - Steinar
> 



Doc of environment variables to modify docker images?

2021-06-19 Thread Steinar Bang
I'm in the process of moving my karaf based docker images from karaf
4.2.8 to karaf 4.3.2.

I'm trying to find the enviroment variables that will let me add maven
repositories, feature repositories and boot features, without copying
the files from the distro and modifying them.

But I haven't been able to google up these variables.

Is there a list of these variables somewhere?

(I thought they might be implemented by using ${env:xxx} in the .cfg
files, but there aren't any usage of "env:" in the etc directory of
karaf 4.3.2)

Thanks!


- Steinar