Skip to content

Commit

Permalink
pin migrate binary
Browse files Browse the repository at this point in the history
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
  • Loading branch information
riyazdf committed Apr 26, 2017
1 parent 86e2ee9 commit e640479
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ MAINTAINER David Lawrence "david.lawrence@docker.com"

RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*

# Install SQL DB migration tool
RUN go get github.com/mattes/migrate
# Pin to the specific v1 version
RUN git clone -b v1 https://github.com/mattes/migrate.git /go/src/github.com/mattes/migrate/ && \
go get github.com/mattes/migrate && \
go build -tags 'mysql' -o /usr/local/bin/migrate github.com/mattes/migrate

ENV NOTARYPKG github.com/docker/notary

Expand Down
6 changes: 4 additions & 2 deletions signer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ MAINTAINER David Lawrence "david.lawrence@docker.com"

RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*

# Install SQL DB migration tool
RUN go get github.com/mattes/migrate
# Pin to the specific v1 version
RUN git clone -b v1 https://github.com/mattes/migrate.git /go/src/github.com/mattes/migrate/ && \
go get github.com/mattes/migrate && \
go build -tags 'mysql' -o /usr/local/bin/migrate github.com/mattes/migrate

ENV NOTARYPKG github.com/docker/notary

Expand Down

0 comments on commit e640479

Please sign in to comment.