forked from instana/robot-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
38 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,12 @@ | ||
#!/bin/sh | ||
|
||
# Put your EUM key here | ||
EUM_KEY="" | ||
|
||
# set -x | ||
|
||
# This only works for default local install of minishift | ||
# Need to tweak some settings in OpenShift | ||
echo "logging in as system:admin" | ||
oc login -u system:admin | ||
|
||
# Optionally label the nodes with role infra | ||
for NODE in $(oc get node | awk '{if ($3 == "infra" || $3 == "<none>") print $1}' -) | ||
do | ||
oc label node $NODE 'type=infra' | ||
done | ||
|
||
oc adm new-project robot-shop --node-selector='type=infra' | ||
oc adm new-project robot-shop | ||
oc adm policy add-role-to-user admin developer -n robot-shop | ||
oc adm policy add-scc-to-user anyuid -z default | ||
oc adm policy add-scc-to-user privileged -z default | ||
|
||
oc logout | ||
|
||
echo " " | ||
echo "OpenShift set up complete, ready to deploy Robot Shop now." | ||
echo " " | ||
oc login -u developer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters