Files
kubernetes/build/pause/prepare.sh
Victor Marmol 9b747c3a9d Add a signal handler to pause.
It returns 0 when a signal is received.
2014-10-03 08:36:08 -07:00

12 lines
183 B
Bash
Executable File

#!/bin/bash
set -e
set -x
# Build the binary.
go build --ldflags '-extldflags "-static" -s' pause.go
# Run goupx to shrink binary size.
go get github.com/pwaller/goupx
goupx pause