Skip to content

Instantly share code, notes, and snippets.

@jawnsy
Created June 27, 2017 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jawnsy/3e00f24893220e24e66bdbd96dd729c0 to your computer and use it in GitHub Desktop.
Save jawnsy/3e00f24893220e24e66bdbd96dd729c0 to your computer and use it in GitHub Desktop.
"oc cluster up" script
#!/bin/sh
set -o errexit
set -o pipefail
set -o nounset
set -o xtrace
OS_HOME=/opt/openshift.local
oc cluster up \
--image-streams=rhel7 \
--image=openshift/origin \
--version=latest \
--public-hostname=console.openshift.cf \
--routing-suffix=openshift.cf \
--metrics=true \
--host-config-dir=${OS_HOME}/config \
--use-existing-config \
--host-data-dir=${OS_HOME}/data \
--host-pv-dir=${OS_HOME}/pv \
--host-volumes-dir=${OS_HOME}/volumes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment