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