Skip to content

Instantly share code, notes, and snippets.

@l0rd
Last active January 12, 2018 15:38
Show Gist options
  • Save l0rd/9ae8e95d936367d6f48248942a1ae473 to your computer and use it in GitHub Desktop.
Save l0rd/9ae8e95d936367d6f48248942a1ae473 to your computer and use it in GitHub Desktop.
Run Che6 using the minishift addon
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment