Skip to content

Instantly share code, notes, and snippets.

@rasor
Last active April 23, 2018 19:12
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 rasor/2060037307731d2c2bb740e503c951bb to your computer and use it in GitHub Desktop.
Save rasor/2060037307731d2c2bb740e503c951bb to your computer and use it in GitHub Desktop.
Startup script for MiniShift
#!/bin/bash
# occli.sh
echo "Enable oc CLI"
eval $(minishift oc-env)
# done
#!/bin/bash
# shiftcli.sh
# https://rasor.github.io/developing-with-openshift.html
# Start a VM and start an OpenShift Cluster inside the VM
echo "Start MiniShift"
minishift start --vm-driver=virtualbox
echo ""
minishift status
echo "Enable oc CLI"
eval $(minishift oc-env)
echo ""
echo "oc CLI commmands"
# print oc cmds, if you prefer CLI to the Web Console
oc --help
# optionally start Web Console if you like that better than the CLI
start chrome https://192.168.99.100:8443/
echo ""
echo "minishift stop #when done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment