/gocloud

Primary LanguageGoApache License 2.0Apache-2.0

#TODO travis deploy using custom scripts: https://docs.travis-ci.com/user/deployment/script travis + gcp: https://cloud.google.com/solutions/continuous-delivery-with-travis-ci Split apart grpc and restapi into different repos/services
Makefile for docker/deploy scripts glide install Test docker images as part of CI/CD
go get -d fails to download github.com/stretchr/testify/assert in test file -- why?
Add --log-level option cmds
docker automated builds (suck): docker/hub-feedback#1012

docker-compose

start services

docker-compose up -d

cleanup

docker-compose stop
docker-compose rm -f

kubernetes

minikube

kubectl create -f kube/server-deploy.yaml
kubectl create -f kube/server-service.yaml
kubectl create -f kube/client-deploy.yaml
kubectl expose deployment gocloud-api --type=NodePort (minikube only!)
kubectl get svc

NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
gocloud-grpc 10.0.0.223 8000/TCP 3m
gocloud-api 10.0.0.58 8010:PORT/TCP 6m

testing

curl -i localhost:PORT ==> 404
curl -i localhost:PORT/healthcheck ==> 200
curl -i localhost:PORT/hw ==> Hello World! / 200
curl -i localhost:PORT/hw?name=DUDE ==> Hello DUDE! / 200

cleanup

kubectl delete deploy/gocloud-grpc deploy/gocloud-api
kubectl delete svc/gocloud-grpc svc/gocloud-api
minikube stop

#NOTES