From e640479b88df239c995eea1f017dff403f1ee31c Mon Sep 17 00:00:00 2001 From: Riyaz Faizullabhoy Date: Tue, 25 Apr 2017 11:15:12 -0700 Subject: [PATCH] pin migrate binary Signed-off-by: Riyaz Faizullabhoy --- server.Dockerfile | 6 ++++-- signer.Dockerfile | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/server.Dockerfile b/server.Dockerfile index 6f9eb95d7..64606231c 100644 --- a/server.Dockerfile +++ b/server.Dockerfile @@ -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 diff --git a/signer.Dockerfile b/signer.Dockerfile index 07ab0fe3a..77e20342b 100644 --- a/signer.Dockerfile +++ b/signer.Dockerfile @@ -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