playground: fix issues preventing successful deployment

+ Since the health endpoint triggers a compile to ensure that the
  service is healthy, increase the amount of time the health check
  is allowed to run.
+ Increase the number of minimum instances upon initial deploy.
+ ca-certificate must be present for the cloud datastore to work
  properly. Don’t remove them with the build dependencies.

Change-Id: I0ee281ebec970bf850673794bd792feb95b6334f
Reviewed-on: https://go-review.googlesource.com/85515
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2 files changed
tree: 5fdfb7bb99c0313c40fb0496ee6e530f42021d08
  1. static/
  2. AUTHORS
  3. CONTRIBUTING.md
  4. CONTRIBUTORS
  5. Dockerfile
  6. LICENSE
  7. Makefile
  8. PATENTS
  9. README.md
  10. app.yaml
  11. client.go
  12. codereview.cfg
  13. edit.go
  14. edit.html
  15. enable-fake-time.patch
  16. fake_fs.lst
  17. fmt.go
  18. logger.go
  19. main.go
  20. play.go
  21. play_test.go
  22. sandbox.go
  23. server.go
  24. server_test.go
  25. share.go
  26. store.go
README.md

playground

This subrepository holds the source for the Go playground: https://play.golang.org/

To submit changes to this repository, see http://golang.org/doc/contribute.html.

Building

# build the image
docker build -t playground .

Running

docker run --rm -d -p 8080:8080 playground
# run go some code
cat /path/to/code.go | go run client.go | curl --data @- localhost:8080/compile

Deployment

gcloud --project=golang-org --account=person@example.com app deploy app.yaml

Contributing

To submit changes to this repository, see http://golang.org/doc/contribute.html.