commit | 86b22b752daa2ad35998c2d923c35eab5afbbf4e | [log] [tgz] |
---|---|---|
author | Andrew Gerrand <adg@golang.org> | Mon Sep 21 12:47:21 2015 +1000 |
committer | Andrew Gerrand <adg@golang.org> | Mon Sep 21 02:52:39 2015 +0000 |
tree | 7f5e9dd058270b3c8abd9137227cf197dfa81b92 | |
parent | 64f7014affabd5446cabfe7b9e362502c77caa06 [diff] |
sandbox: deploy to module, enable autoscaling, increase timeout We're seeing more "process took too long" errors running on Managed VMs. Hopefully with more instances and a longer timeout these issues should go away. Change-Id: I90f90e4714395a782e399c31f9f67396ca3ae33d Reviewed-on: https://go-review.googlesource.com/14749 Reviewed-by: Andrew Gerrand <adg@golang.org>
This subrepository holds the source for various packages and tools that support the Go playground: https://play.golang.org/
# build the sandbox image docker build -t sandbox sandbox/
# run the sandbox docker run -d -p 8080:8080 sandbox # get docker host ip, try boot2docker fallback on localhost. DOCKER_HOST_IP=$(boot2docker ip || echo localhost) # run go some code cat /path/to/code.go | go run ./sandbox/client.go | curl --data @- $DOCKER_HOST_IP:8080/compile
To submit changes to this repository, see http://golang.org/doc/contribute.html.
gcloud preview app run app/app.yaml gcloud preview app run sandbox/app.yaml gcloud config set project golang-org gcloud preview app deploy app/app.yaml --version play gcloud preview app deploy sandbox/app.yaml --set-default
# sandbox docker push golang/playground-sandbox gcloud preview container replicationcontrollers create --config sandbox/kubernetes/controller.yaml gcloud preview container services create --config sandbox/kubernetes/service.yaml
# sandbox docker push golang/playground-sandbox gcloud compute instances create playground-sandbox-vm --image container-vm --metadata-from-file google-container-manifest=sandbox/container-vm.yaml