2014-12-17 23:00:26 +03:00
|
|
|
# playground
|
|
|
|
|
2017-12-24 02:02:41 +03:00
|
|
|
This subrepository holds the source for the Go playground:
|
|
|
|
https://play.golang.org/
|
2014-12-17 23:00:26 +03:00
|
|
|
|
2017-12-24 02:02:41 +03:00
|
|
|
## Building
|
2017-12-19 20:43:27 +03:00
|
|
|
|
2017-12-20 03:30:25 +03:00
|
|
|
```
|
2017-12-24 02:02:41 +03:00
|
|
|
# build the image
|
|
|
|
docker build -t playground .
|
2017-12-20 03:30:25 +03:00
|
|
|
```
|
|
|
|
|
2017-12-24 02:02:41 +03:00
|
|
|
## Running
|
2014-12-17 23:00:26 +03:00
|
|
|
|
|
|
|
```
|
2018-04-11 08:01:01 +03:00
|
|
|
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
|
2014-12-17 23:00:26 +03:00
|
|
|
```
|
|
|
|
|
2016-08-16 01:36:00 +03:00
|
|
|
# Deployment
|
2015-01-14 03:39:11 +03:00
|
|
|
|
2017-12-21 01:35:14 +03:00
|
|
|
```
|
2017-12-24 02:02:41 +03:00
|
|
|
gcloud --project=golang-org --account=person@example.com app deploy app.yaml
|
2017-12-21 01:35:14 +03:00
|
|
|
```
|
2015-01-14 03:39:11 +03:00
|
|
|
|
2017-12-24 02:02:41 +03:00
|
|
|
# Contributing
|
2015-01-14 03:39:11 +03:00
|
|
|
|
2018-04-11 08:01:01 +03:00
|
|
|
To submit changes to this repository, see
|
|
|
|
https://golang.org/doc/contribute.html.
|