commit | 235edee5d4f2b3172bdc20ec64f99f3cf01a147b | [log] [tgz] |
---|---|---|
author | Johan Euphrosine <proppy@google.com> | Wed Jan 14 00:39:11 2015 +0000 |
committer | Andrew Gerrand <adg@golang.org> | Mon Jan 19 06:17:07 2015 +0000 |
tree | 2cc31c790e9621bb0d345a9e59eb2729beeb0632 | |
parent | a4b712c85423ff87492dc65447a84d5a78460272 [diff] |
sandbox: add kubernetes and container-vm config Change-Id: I41e9adc4e35db6714aef77ddb6605f2526eecd52 Reviewed-on: https://go-review.googlesource.com/2752 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.
boot2docker shellinit gcloud preview app setup-managed-vms gcloud preview app run app/ sandbox/ gcloud preview app deploy app/ sandbox/
# 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