Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix rocker build - use golang 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Bogdanov committed Sep 30, 2015
1 parent 46ab7e1 commit 7d9dac2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Rockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Yeah, we have a tool called 'rocker' that is not open sourced yet.
# rocker is an extensible Dockerfile builder tool
FROM dockerhub.grammarly.io/golang-1.4.2-cross:v2
FROM golang:1.5.1

{{ assert .Version }}
{{ $stable := "0.1.2" }}
{{ $beta := "0.1.3" }}

{{ $branch := or .Env.GIT_BRANCH "" }}
{{ $commit := or .Env.GIT_COMMIT "" }}

ADD . /src
WORKDIR /src

Expand All @@ -20,11 +21,11 @@ RUN make test
{{ end }}

RUN \
TIME=$(date "+%Y-%m-%d %H:%M GMT") \
TIME=$(TZ=GMT date "+%Y-%m-%d_%H:%M_GMT") \
GOPATH=/src:/src/vendor \
go build \
-a -installsuffix cgo \
-ldflags "-X main.Version '{{ .Version }}' -X main.GitCommit '$commit' -X main.GitBranch '$branch' -X main.BuildTime '$TIME'" \
-ldflags "-X main.Version={{ .Version }} -X main.GitCommit={{ $branch }} -X main.GitBranch={{ $commit }} -X main.BuildTime=$TIME" \
-v -o /bin/rocker-compose src/cmd/rocker-compose/main.go

EXPORT /bin/rocker-compose
Expand Down

0 comments on commit 7d9dac2

Please sign in to comment.