Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Start minishift
- minishift start --memory=4gb --cpus=4 --disk-size=50g --openshift-version=v3.7.0-rc.0 --vm-driver=xhyve
- # Clone minishift addon repository
- git clone -b che-addon-update git@github.com:l0rd/minishift-addons.git
- cd minishift-addons
- # Install the addon
- minishift addons install add-ons/che/ && \
- OS_TOKEN=$(oc whoami -t) && \
- minishift addons apply \
- --addon-env OPENSHIFT_TOKEN=${OS_TOKEN} \
- --addon-env NAMESPACE=mini-che che
- # Verify Che deployment
- oc get event -n mini-che && oc get po -n mini-che
- oc logs -f dc/che
- # Uninstall
- OS_TOKEN=$(oc whoami -t) && \
- minishift addons remove \
- --addon-env OPENSHIFT_TOKEN=${OS_TOKEN} \
- --addon-env NAMESPACE=mini-che che && \
- minishift addons uninstall che
Add Comment
Please, Sign In to add comment