-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benton Roberts
committed
Oct 27, 2015
1 parent
f59e67c
commit e8579f0
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# runs goxc in each product directory | ||
set -e | ||
|
||
echo "Building static linux binary for docker-ssh-exec..." | ||
mkdir -p pkg | ||
buildcmd='CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o pkg/docker-ssh-exec' | ||
docker run --rm -it -v "$GOPATH":/gopath -v "$(pwd)":/app -e "GOPATH=/gopath" \ | ||
-w /app golang:1.5 sh -c "$buildcmd" | ||
|
||
echo "Building docker image for docker-ssh-exec..." | ||
docker build --no-cache=true --tag mdsol/docker-ssh-exec . | ||
rm -f pkg/docker-ssh-exec | ||
|
||
echo "Done. To make a release, run: goxc" | ||
exit 0 |