tree: 5292f1131c47415bbb2e232e660cbc43de4a48a0 [path history] [tgz]
  1. owners/
  2. static/
  3. templates/
  4. data.go
  5. deployment-prod.yaml
  6. deployment-staging.yaml
  7. devapp.go
  8. Dockerfile
  9. gophercon.go
  10. gophercon_test.go
  11. gzip.go
  12. Makefile
  13. README.md
  14. release.go
  15. release_test.go
  16. reviews.go
  17. server.go
  18. server_test.go
  19. service-prod.yaml
  20. service-staging.yaml
  21. stats.go
  22. stats_test.go
  23. title.go
  24. title_test.go
devapp/README.md

devapp

Local development

$ go build
$ ./devapp

Then visit http://localhost:6343

Deployment

First-time setup

Install the docker, kubectl, and gcloud utilities.

Verify that docker run hello-world works without sudo. (You may need to run sudo adduser $USER docker, then either log out and back in or run newgrp docker.)

Then run:

$ gcloud auth configure-docker

Install the App Engine Go SDK: instructions

Staging

$ gcloud config set project go-dashboard-dev
$ gcloud container clusters get-credentials --zone=us-central1-f go
$ make push-staging

If creating the deployment and service the first time:

$ kubectl create -f deployment-staging.yaml
$ kubectl create -f service-staging.yaml

If updating the pod image:

$ make deploy-staging

Prod

$ gcloud config set project symbolic-datum-552
$ gcloud container clusters get-credentials --zone=us-central1-f go
$ make push-prod

If creating the deployment and service the first time:

$ kubectl create -f deployment-prod.yaml
$ kubectl create -f service-prod.yaml

If updating the pod image:

$ make deploy-prod