Guest User

Untitled

a guest
Nov 17th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ~/.../openshift/origin → cat $(which cluster-up.sh)
  2. #!/bin/bash
  3.  
  4. cd $HOME/go/src/github.com/openshift/origin
  5.  
  6. current_version=$(git describe --abbrev=0 --tags)
  7. data_dir="${HOME}/.config/openshift/${current_version}"
  8. binary_path="_output/local/bin/linux/amd64/openshift"
  9.  
  10.  
  11. if [[ ! -x "$(pwd)/${binary_path}" ]]; then
  12. echo "ERROR: OpenShift binary not found in $(pwd)/${binary_path}"
  13. exit 1
  14. fi
  15.  
  16. mkdir -p ${data_dir}
  17. exec oc-dev cluster up --version="${current_version}" \
  18. --openshift-binary-path=$(pwd)/${binary_path} \
  19. --host-data-dir="$data_dir" \
  20. --host-config-dir="${data_dir}/config" \
  21. --use-existing-config \
  22. --image-streams=centos7 \
  23. --skip-registry-check \
  24. --server-loglevel=5
Add Comment
Please, Sign In to add comment