-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Dockerfile and build_binaries script to help build binaries anyw…
…here
- Loading branch information
Showing
3 changed files
with
20 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:alpine as builder | ||
|
||
RUN apk add --update git perl-utils bash | ||
|
||
WORKDIR $GOPATH/src/github.com/thoughtworks/talisman | ||
|
||
RUN go get github.com/mitchellh/gox | ||
|
||
VOLUME [$GOPATH/src/github.com/thoughtworks/talisman] | ||
|
||
CMD ["/bin/bash", "./build"] | ||
|
||
|
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,6 @@ | ||
#/bin/bash | ||
docker image build --rm -t build_talisman . | ||
docker container run --rm -v `pwd`:/go/src/github.com/thoughtworks/talisman -it --name build_talisman build_talisman | ||
# need to find a good way to make sure that the binaries and the checksum file are not owned by root | ||
# sudo chown $USER:$USER talisman_{l,d,w}* | ||
# sudo chown $USER:$USER checksums |