From b93f9b68d724943e702fe2e3784e8893ff0fe906 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 23 Apr 2015 13:40:17 -0700 Subject: [PATCH] Documentation: fixup formatting on getting-started - Be consistent with tabs/spaces in json - Always put a newline between a code section and previous paragraph --- Documentation/getting-started-guide.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Documentation/getting-started-guide.md b/Documentation/getting-started-guide.md index 983242f..d7d3d46 100644 --- a/Documentation/getting-started-guide.md +++ b/Documentation/getting-started-guide.md @@ -28,16 +28,19 @@ Next we need to build our application. We are going to statically link our app so we can ship an App Container Image with no external dependencies. With Go 1.3: + ``` $ CGO_ENABLED=0 GOOS=linux go build -o hello -a -tags netgo -ldflags '-w' . ``` or, on [Go 1.4](https://github.com/golang/go/issues/9344#issuecomment-69944514): + ``` $ CGO_ENABLED=0 GOOS=linux go build -o hello -a -installsuffix cgo . ``` Before proceeding, verify that the produced binary is statically linked: + ``` $ file hello hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped @@ -75,18 +78,18 @@ Edit: manifest.json "/bin/hello" ], "ports": [ - { - "name": "www", - "protocol": "tcp", - "port": 5000 - } + { + "name": "www", + "protocol": "tcp", + "port": 5000 + } ] }, "annotations": [ { - "name": "authors", - "value": "Kelsey Hightower " - } + "name": "authors", + "value": "Kelsey Hightower " + } ] } ```