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