Skip to content

Commit

Permalink
add Dockerfile and build.sh to make release builds more consistent an…
Browse files Browse the repository at this point in the history
…d repeatable
  • Loading branch information
tianon committed Jul 14, 2014
1 parent af6a831 commit a9280b2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM tianon/golang

# cache-fill
RUN go get -d -v github.com/dotcloud/docker/pkg/user

ADD . /go/src/github.com/tianon/gosu
WORKDIR /go/src/github.com/tianon/gosu

RUN go get -d -v ./...
RUN go build -v

CMD [ "cat", "gosu" ]
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

set -x
docker build -t gosu .
docker run --rm gosu > gosu
chmod +x gosu
./gosu

0 comments on commit a9280b2

Please sign in to comment.