You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2019/12/10 23:40:57 UTC

[GitHub] [camel-k] lburgazzoli commented on issue #1133: Allow to configure kamel CLI with env vars and configuration files

lburgazzoli commented on issue #1133: Allow to configure kamel CLI with env vars and configuration files
URL: https://github.com/apache/camel-k/pull/1133#issuecomment-564310115
 
 
   
   You can now configure default values for any `kamel` command in a file named `.kamel/config.yaml` in the current working directory or in the user home like:
   
   ```yaml
   kamel:
     install:
       kits:
         - js
         - yaml
       maven-repositories:
         - http://repository.apache.org/snapshots@id=apache.snapshots@snapshots@noreleases
         - http://oss.sonatype.org/content/repositories/snapshots@id=oss.snapshots@snapshots@noreleases
   ```
   
   Environment variables can be used to so the configuration below can be replaced by:
   
   ```
   KAMEL_INSTALL_KITS="js,yaml"
   KAMEL_INSTALL_MAVEN_REPOSITORIES="http://repository.apache.org/snapshots@id=apache.snapshots@snapshots@noreleases,http://oss.sonatype.org/content/repositories/snapshots@id=oss.snapshots@snapshots@noreleases"
   ```
   
   You can of course mix command flags, environment variables and configuration files (in the given order of priority).
   
   Note that inside a configuration file or environment variables, multi value flags are expressed through the plural for of the flag, as example: 
   
       kamel install --kit=js --kit=java
   
   is equivalent to
   
       KAMEL_INSTALL_KITS="js,java" kamel install
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services