specify version 2.7.x
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1787848b42
commit
1c155743cb
|
@ -1,13 +1,18 @@
|
|||
FROM nephatrine/alpine-s6:latest
|
||||
FROM nephatrine/alpine-s6:3.11
|
||||
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
|
||||
|
||||
ARG REGISTRY_VERSION=release/2.7
|
||||
ARG GOPATH="/usr"
|
||||
|
||||
RUN echo "====== COMPILE REGISTRY ======" \
|
||||
&& mkdir /etc/registry \
|
||||
&& apk add --virtual .build-registry build-base git go \
|
||||
&& cd /usr/src \
|
||||
&& go get -u github.com/docker/distribution/cmd/registry \
|
||||
&& go get -d github.com/docker/distribution/cmd/registry \
|
||||
&& cd github.com/docker/distribution/cmd/registry \
|
||||
&& git fetch && git fetch --tags \
|
||||
&& git checkout "$REGISTRY_VERSION" && cd /usr/src \
|
||||
&& go install github.com/docker/distribution/cmd/registry \
|
||||
&& cp github.com/docker/distribution/cmd/registry/config-example.yml /etc/registry/config-example.yml \
|
||||
&& cp /etc/registry/config-example.yml /etc/registry/config.yml \
|
||||
&& sed -i 's~/var/lib/registry~/mnt/config/data/registry~g' /etc/registry/config.yml \
|
||||
|
|
Reference in New Issue