gocloud

command module
v0.0.0-...-301d101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

README

#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): https://github.com/docker/hub-feedback/issues/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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mock
Package helloworld is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.
rnd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL