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

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