Guest User

Untitled

a guest
Jan 22nd, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Start minishift
  4. minishift start --memory=4gb --cpus=4 --disk-size=50g --openshift-version=v3.7.0-rc.0 --vm-driver=xhyve
  5.  
  6. # Clone minishift addon repository
  7. git clone -b che-addon-update git@github.com:l0rd/minishift-addons.git
  8. cd minishift-addons
  9.  
  10. # Install the addon
  11. minishift addons install add-ons/che/ && \
  12. OS_TOKEN=$(oc whoami -t) && \
  13. minishift addons apply \
  14. --addon-env OPENSHIFT_TOKEN=${OS_TOKEN} \
  15. --addon-env NAMESPACE=mini-che che
  16.  
  17. # Verify Che deployment
  18. oc get event -n mini-che && oc get po -n mini-che
  19. oc logs -f dc/che
  20.  
  21. # Uninstall
  22. OS_TOKEN=$(oc whoami -t) && \
  23. minishift addons remove \
  24. --addon-env OPENSHIFT_TOKEN=${OS_TOKEN} \
  25. --addon-env NAMESPACE=mini-che che && \
  26. minishift addons uninstall che
Add Comment
Please, Sign In to add comment