commit | 742871fe54f1361dec093509e7de27fe92f23743 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Wed May 15 22:29:36 2019 +0000 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu May 16 01:48:21 2019 +0000 |
tree | 94eb0ab252b760b32a81bd5a81d187f29e93b515 | |
parent | e1479bc33ebe3034511f953ef8582f1c7aae9d0e [diff] |
Makefile: adjust the test rule to be more useful Run quick tests before the slow tests. Change-Id: I52d0d9a72de416201745eff992d84d72409cecae Reviewed-on: https://go-review.googlesource.com/c/playground/+/177477 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This subrepository holds the source for the Go playground: https://play.golang.org/
# build the image docker build -t playground .
docker run --name=play --rm -d -p 8080:8080 playground # run some Go code cat /path/to/code.go | go run client.go | curl -s --upload-file - localhost:8080/compile
Building the playground Docker container takes more than the default 10 minute time limit of cloud build, so increase its timeout first (note, app/cloud_build_timeout
is a global configuration value):
gcloud config set app/cloud_build_timeout 1200 # 20 mins
Alternatively, to avoid Cloud Build and build locally:
make docker docker tag playground:latest gcr.io/golang-org/playground:latest docker push gcr.io/golang-org/playground:latest gcloud --project=golang-org --account=you@google.com app deploy app.yaml --image-url=gcr.io/golang-org/playground:latest
Then:
gcloud --project=golang-org --account=you@google.com app deploy app.yaml
To submit changes to this repository, see https://golang.org/doc/contribute.html.