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
Testing this gist ish |
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
This is a gist-vim test |
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
curl -v -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d '{name:your-repo-name,description:your-repo-description}' https://api.github.com/user/repos?access_token=your-token |
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
Here is my first attempt at creating a minikube .deb installer: | |
(Adapted from the tutorial here https://ubuntuforums.org/showthread.php?t=910717) | |
$ mkdir minikube_0.7-1/usr | |
$ mkdir minikube_0.7-1/usr/local | |
$ mkdir minikube_0.7-1/usr/local/bin | |
$ cp /path/to/minikube/binary minikube_0.7-1/usr/local/bin | |
$ mkdir minikube_0.7-1/DEBIAN |
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
if [ ! -e /usr/local/google/home/aprindle/go/src/k8s.io/minikube/_gopath/src/k8s.io ]; then mkdir -p /usr/local/google/home/aprindle/go/src/k8s.io/minikube/_gopath/src/k8s.io && ln -s -f /usr/local/google/home/aprindle/go/src/k8s.io/minikube /usr/local/google/home/aprindle/go/src/k8s.io/minikube/_gopath/src/k8s.io; fi | |
CGO_ENABLED=1 go build -ldflags="-X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitCommit=dd6b458ef8dbf24aff55795baa68f83383c9b3a9 -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitVersion=v1.3.4 -X k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/version.gitTreeState=dirty -X k8s.io/minikube/pkg/version.version=v0.7.1 -s -w -extldflags '-static'" -o ./out/localkube ./cmd/localkube | |
/usr/local/google/home/aprindle/go/src/k8s.io/minikube/_gopath/bin/go-bindata -nomemcopy -o pkg/minikube/cluster/assets.go -pkg cluster ./out/localkube deploy/iso/addon-manager.yaml deploy/addons/dashboard-rc.yaml deploy/addons/dashboard-svc.yaml | |
if [ ! -e /usr/local/google/home/aprindle/go/src/k8s.io/mi |
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
For the first design of the Windows Installer for minikube I have created a simple Windows MSI using the WIX toolset. | |
Right now the MSI moves the minikube.exe into ProgramFiles and adds `minikube` to the users PATH so that it is executable after install | |
on the CLI | |
[steps adapted from http://www.codeproject.com/Tips/105638/A-quick-introduction-Create-an-MSI-installer-with] | |
Install WIX from http://wixtoolset.org/ | |
Add C:\Program Files (x86)\WiX Toolset <installed-version>\bin to your PATH | |
Create the following files in a new directory AND place the minikube.exe in that directory: |
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
aprindle@aprindle:~/go/src/k8s.io/minikube$ m start | |
Starting local Kubernetes cluster... | |
Kubernetes is available at https://192.168.99.100:8443. | |
Kubectl is now configured to use the cluster. | |
aprindle@aprindle:~/go/src/k8s.io/minikube$ k get endpoints --all-namespaces | |
NAMESPACE NAME ENDPOINTS AGE | |
default kubernetes 10.0.2.15:8443 8s | |
kube-system kube-dns 10.0.2.15:53,10.0.2.15:53 7s | |
aprindle@aprindle:~/go/src/k8s.io/minikube$ k get po --all-namespaces | |
NAMESPACE NAME READY STATUS RESTARTS AGE |
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
-Enabled hyper-v in Windows Features | |
-Created a vswitch using hyper-v | |
-Run shell with Admin privileges | |
===================================== | |
PS C:\Users\aprindle\Downloads> .\minikube.exe start --vm-driver="hyperv" --show-libmachine-logs | |
Starting local Kubernetes cluster... | |
Running pre-create checks... | |
Creating machine... | |
(minikubeVM) Downloading C:\Users\aprindle\.minikube\cache\boot2docker.iso from file://C:/Users/aprindle/.minikube/cache/iso/minikube- | |
0.5.iso... |
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
$ docker-machine.exe create --driver="hyperv" test | |
Running pre-create checks... | |
(test) Image cache directory does not exist, creating it at C:\Users\aprindle\.docker\machine\cache... | |
(test) No default Boot2Docker ISO found locally, downloading the latest release... | |
(test) Latest release for github.com/boot2docker/boot2docker is v1.12.0 | |
(test) Downloading C:\Users\aprindle\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.12.0/boot2docker.iso... | |
(test) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100% | |
Creating machine... | |
(test) Copying C:\Users\aprindle\.docker\machine\cache\boot2docker.iso to C:\Users\aprindle\.docker\machine\machines\test\boot2docker.iso... | |
(test) Creating SSH key... |
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
go test -v k8s.io/minikube/test/integration --tags=integration | |
=== RUN TestAddons | |
--- PASS: TestAddons (101.41s) | |
=== RUN TestDashboard | |
--- PASS: TestDashboard (28.63s) | |
=== RUN TestClusterDNS | |
--- PASS: TestClusterDNS (6.75s) | |
=== RUN TestClusterEnv | |
--- PASS: TestClusterEnv (1.66s) | |
=== RUN TestClusterLogs |
OlderNewer