How to provide parameter to docker run with "oc new-app" in OpenShift? -


when run docker containers, need provide parameters on command line (docker run image some-parameters). how can provide same parameters when using oc new-app in openshift origin?

the oc new-app example includes:

# create application based on template file, explicitly setting parameter value $ oc new-app --file=./example/myapp/template.json --param=mysql_user=admin 

the --param option can useful here.


note: oc run example include:

# start single instance of nginx, overload spec of replication # controller partial set of values parsed json. $ oc run nginx --image=nginx --overrides='{ "apiversion": "v1", "spec": { ... } }' 

that json can include parameter section, this one used sti_incremental.go#l39.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -