Skip to content

Commit 56cedf5

Browse files
authored
Cleaning up documentation
1 parent 35811a2 commit 56cedf5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# go-light
2-
Simple go endpoints to test with ELK
1+
# GO + GCP Cloud-Run-Button
2+
Simple GO endpoints deployed in Google Cloud Platform directy from GitHub clicking just one button!
33

4+
[![Run on Google Cloud](https://storage.googleapis.com/cloudrun/button.svg)](https://console.cloud.google.com/cloudshell/editor?shellonly=true&cloudshell_image=gcr.io/cloudrun/button&cloudshell_git_repo=https://github.com/twogg-git/go-gcp-cloudshell.git)
5+
6+
### Testing locally
47
```sh
5-
docker run -v $pwd:/go/src/app -p 8181:8080 -d --name go-light golang:1.8 go run src/app/main.go
8+
docker run -v $pwd:/go/src/app -p 8181:8080 -d --name go-endpoints golang:1.8 go run src/app/main.go
69

7-
docker run -v $(pwd):/go/src/app --rm --name testgo golang:1.8 go run main.go
10+
docker run -v $(pwd):/go/src/app --rm --name go-endpoints golang:1.8 go run main.go
811
```
912

10-
13+
### Endpoints available
1114
```sh
1215
localhost:8181
1316
localhost:8181/time
1417
localhost:8181/version
1518
```
1619

20+
### Docker + Go commands
1721
```sh
18-
docker run -v $pwd:/go/src/app -p 8181:8080 -d --name go-light golang:1.8 /bin/bash -c "go run src/app/main.go"
19-
```
22+
docker run -v $pwd:/go/src/app -p 8181:8080 -d --name go-endpoints golang:1.8 /bin/bash -c "go run src/app/main.go"
2023

21-
```sh
22-
docker run -v $pwd:/go/src/app -p 8181:8080 -d --name go-light golang:1.8 /bin/bash -c "cd src/app;go get -v ./...;go run /src/app/main.go"
24+
docker run -v $pwd:/go/src/app -p 8181:8080 -d --name go-endpoints golang:1.8 /bin/bash -c "cd src/app;go get -v ./...;go run /src/app/main.go"
2325
```
24-
26+
### Cleaning up
2527
```sh
26-
docker rm -f go-light
28+
docker rm -f go-endpoints
2729
```
2830

29-
[![Run on Google Cloud](https://storage.googleapis.com/cloudrun/button.svg)](https://console.cloud.google.com/cloudshell/editor?shellonly=true&cloudshell_image=gcr.io/cloudrun/button&cloudshell_git_repo=https://github.com/twogg-git/go-light.git)
30-
31-
https://github.com/GoogleCloudPlatform/cloud-run-button#add-the-cloud-run-button-to-your-repos-readme
31+
[GCP Cloud run button repo](https://github.com/GoogleCloudPlatform/cloud-run-button#add-the-cloud-run-button-to-your-repos-readme)]

0 commit comments

Comments
 (0)