Last active
April 23, 2018 19:12
-
-
Save rasor/2060037307731d2c2bb740e503c951bb to your computer and use it in GitHub Desktop.
Startup script for MiniShift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# occli.sh | |
echo "Enable oc CLI" | |
eval $(minishift oc-env) | |
# done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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