Created
January 4, 2017 12:52
-
-
Save simeji/d75dc1ff58c03337cd7610c3144e41dc to your computer and use it in GitHub Desktop.
jid build with docker
This file contains hidden or 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
#!/bin/bash | |
bdir=`pwd` | |
find $bdir/cmd/jid/jid_* | grep -v .go | xargs -I{} -L1 -P4 rm -f {} | |
docker run --rm -v $bdir:/go -w /go tcnksm/gox:latest sh -c "go get -d ./... && cd cmd/jid && gox -ldflags '-w -s'" | |
cd $bdir/cmd/jid | |
find jid_* | grep -v .go |xargs -I@ -L1 -P4 zip @{.zip,} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment