mirror of
https://github.com/clearlinux/rkt.git
synced 2026-09-01 11:26:05 +00:00
docs: add static verification to getting started guide
This commit is contained in:
@@ -33,11 +33,18 @@ $ 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
|
||||
$ ldd hello
|
||||
not a dynamic executable
|
||||
```
|
||||
|
||||
## Create the image manifest
|
||||
|
||||
Edit: manifest.json
|
||||
|
||||
Reference in New Issue
Block a user