commit | e926f09cc19696e517708cd6b9c4ac76b5cdd8e9 | [log] [tgz] |
---|---|---|
author | Chris Broadfoot <cbro@golang.org> | Fri Aug 21 08:10:45 2015 -0700 |
committer | Chris Broadfoot <cbro@golang.org> | Fri Aug 21 16:45:30 2015 +0000 |
tree | 0bc629935a7ff830dd79e30cb8ea78d7725ad67b | |
parent | db46fc859835a1e8ae1b861b9395a00c48e5bd29 [diff] |
playground: update deployment instructions, move sandbox under "sandbox" module. Change-Id: I6a5ff2b6fbc50c968e383df75239045ba2710c87 Reviewed-on: https://go-review.googlesource.com/13811 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