[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Passing Environment variables to "oc new-app"



Nevermind. Found an open issue: https://github.com/openshift/origin/issues/4967

I’ll have to fork the fabric8 builder image I suppose. 

From: <users-bounces lists openshift redhat com> on behalf of Nicholas Baker <nbaker pentaho com>
Date: Monday, January 25, 2016 at 2:25 PM
To: "users lists openshift redhat com" <users lists openshift redhat com>
Subject: Passing Environment variables to "oc new-app"

Hey All,

I’m having trouble passing environment variables to new-app performing an s2i.

The following works:

s2i build -e "MAVEN_ARGS=install karaf:assembly karaf:archive -DskipTests -e " git://github.com/CodeOnCoffee/camel-hello-world fabric8/s2i-k
araf dhirajsb/camel-hello-world --loglevel=4


But calling oc new-app does not seem to pass through the varaibles:

oc new-app --env="MAVEN_ARGS=install karaf:assembly karaf:archive -DskipTests -e" fabric8/s2i-karaf~git://github.com/CodeOnCoffee/camel-hello-world

oc new-app --env=MAVEN_ARGS="install karaf:assembly karaf:archive -DskipTests -e" fabric8/s2i-karaf~git://github.com/CodeOnCoffee/camel-hello-world


Any help appreciated!
Nick

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]