aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Davis <tydavis@gmail.com>2017-12-08 10:10:10 -0800
committerTyler Davis <tydavis@gmail.com>2017-12-08 10:10:10 -0800
commit642acfe6b68d21d2cb6162d8016b5132db444e39 (patch)
tree9f8a99ccef0c29c5b8276d66e5b2cc18c75cc378
parentbc7d5529c7050ab2cab27ab89943da249a946a9e (diff)
downloadshow-readiness-642acfe6b68d21d2cb6162d8016b5132db444e39.tar.gz
show-readiness-642acfe6b68d21d2cb6162d8016b5132db444e39.zip
Add docker-only option
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2f236e4..9c8ae04 100644
--- a/README.md
+++ b/README.md
@@ -5,5 +5,13 @@ A simple golang application to explore [liveness and readiness checks](http://ku
## To build
In the cloned directory, run the following:
```
-CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -installsuffix netgo -ldflags '-w' .
+CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -installsuffix netgo -ldflags '-w -s' .
```
+
+## To build with only Docker
+Ensure [docker](https://www.docker.com/get-docker) is installed. In the cloned directory, run the folowing:
+
+```
+docker run --rm -v $PWD:/go/src/github.com/tydavis/showreadiness -w /go/src/github.com/tydavis/showreadiness golang:alpine /bin/sh -c "CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -installsuffix netgo -ldflags '-w -s' . "
+```
+