-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcreate-objects.sh
executable file
·17 lines (16 loc) · 1.04 KB
/
create-objects.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
oc project demo
oc adm policy add-scc-to-user privileged -z default -n demo
oc create -f is-welcome.json
oc create -f bc-welcome.json
oc create -f dc-welcome.json
#oc create -f dc-jenkins.json
oc set triggers dc/welcome --manual
oc create -f svc-welcome.json
oc create -f route-welcome.json
#oc secrets new-dockercfg docker-registry --docker-server=docker-registry-default.apps.ocp.tauil.org --docker-username=admin --docker-password=$(oc whoami -t) [email protected]
#oc secrets new-dockercfg docker-registry --docker-server=docker-registry-default.apps.ocp.cloudvillage.in --docker-username=ocpadmin --docker-password=$(oc whoami -t) [email protected]
oc create secret docker-registry docker-registry --docker-server=docker-registry-default.apps.rg.osecloud.com --docker-username=developer --docker-password=$(oc whoami -t) [email protected]
oc create -f pipeline/pipeline-inspector.yml
oc create -f image-inspector-template.json
oc set env dc/jenkins INSTALL_PLUGINS=openshift-client:1.0.1,openshift-sync:1.0.18