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