Skip to content

Instantly share code, notes, and snippets.

@jasongerard
Created November 15, 2018 14:05
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 jasongerard/1a4f985857e4b614124bc59a39d13362 to your computer and use it in GitHub Desktop.
Save jasongerard/1a4f985857e4b614124bc59a39d13362 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
GOOS=linux go build -o app.o
eval $(minikube docker-env)
docker build -t mlockex:latest .
kubectl --context=minikube delete pod mlockex
kubectl --context=minikube apply -f pod.yaml
until kubectl --context=minikube get pod mlockex | grep Completed; do sleep 1; done
kubectl --context=minikube logs mlockex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment