зеркало из https://github.com/golang/build.git
2891c2edef
Prefer displaying GitHub usernames for convenience of pinging in GitHub issues, since all current builder owners have them. Keep it possible to use an email or something else if no GitHub account exists. Update the owner of the Corellium builders to be individual GitHub account, so that it can be pinged in an issue. The GitHub organization is already mentioned in the builder notes. Also switch to html/template (instead of text/template) for rendering the builders page. Fixes golang/go#49596. Change-Id: I89a96eb8f7a3057bc1f3aaee16abc9c776c45ee7 Reviewed-on: https://go-review.googlesource.com/c/build/+/363983 Trust: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org> |
||
---|---|---|
.. | ||
owners | ||
static | ||
templates | ||
Dockerfile | ||
Makefile | ||
README.md | ||
data.go | ||
deployment-prod.yaml | ||
deployment-staging.yaml | ||
devapp.go | ||
gophercon.go | ||
gophercon_test.go | ||
gzip.go | ||
release.go | ||
release_test.go | ||
reviews.go | ||
server.go | ||
server_test.go | ||
service-staging.yaml | ||
stats.go | ||
stats_test.go | ||
title.go | ||
title_test.go |
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