-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build libc (Everyone else) and musl (Alpine) ropoly
- Loading branch information
1 parent
24ced85
commit cae85c7
Showing
2 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#!/bin/bash | ||
|
||
mkdir bin | ||
|
||
docker run --rm -it \ | ||
-v $PWD:/go/src/github.com/polyverse/ropoly \ | ||
-w /go/src/github.com/polyverse/ropoly \ | ||
golang | ||
golang scripts/buildlibc.sh | ||
|
||
echo "Copying libc binary into bin..." | ||
cp ./ropoly ./bin/ropoly-libc-x86_64 | ||
|
||
docker run --rm -it \ | ||
-v $PWD:/go/src/github.com/polyverse/ropoly \ | ||
-w /go/src/github.com/polyverse/ropoly \ | ||
golang:alpine scripts/buildmusl.sh | ||
|
||
echo "Copying musl binary into bin..." | ||
cp ./ropoly ./bin/ropoly-musl-x86_64 |
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 @@ | ||
#!/bin/sh | ||
|
||
echo "Building Ropoly inside Docker (Alpine)..." | ||
|
||
apk update | ||
apk add curl bash alpine-sdk | ||
|
||
echo "Installing dep..." | ||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
|
||
echo "Installing dependencies..." | ||
dep ensure | ||
|
||
echo "Building..." | ||
go build | ||
|