diff options
author | Tyler Davis <tydavis@gmail.com> | 2017-12-08 10:10:10 -0800 |
---|---|---|
committer | Tyler Davis <tydavis@gmail.com> | 2017-12-08 10:10:10 -0800 |
commit | 642acfe6b68d21d2cb6162d8016b5132db444e39 (patch) | |
tree | 9f8a99ccef0c29c5b8276d66e5b2cc18c75cc378 | |
parent | bc7d5529c7050ab2cab27ab89943da249a946a9e (diff) | |
download | show-readiness-642acfe6b68d21d2cb6162d8016b5132db444e39.tar.gz show-readiness-642acfe6b68d21d2cb6162d8016b5132db444e39.zip |
Add docker-only option
-rw-r--r-- | README.md | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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' . " +``` + |