Install registry V2 in image
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
9a38aa0279
commit
ef96c28754
1 changed files with 11 additions and 0 deletions
11
Dockerfile
11
Dockerfile
|
@ -148,6 +148,17 @@ RUN set -x \
|
|||
&& git clone -b v1.2 https://github.com/russross/blackfriday.git /go/src/github.com/russross/blackfriday \
|
||||
&& go install -v github.com/cpuguy83/go-md2man
|
||||
|
||||
# Install registry
|
||||
COPY pkg/tarsum /go/src/github.com/docker/docker/pkg/tarsum
|
||||
# REGISTRY_COMMIT gives us the repeatability guarantees we need
|
||||
# (so that we're all testing the same version of the registry)
|
||||
ENV REGISTRY_COMMIT 21a69f53b5c7986b831f33849d551cd59ec8cbd1
|
||||
RUN set -x \
|
||||
&& git clone https://github.com/docker/distribution.git /go/src/github.com/docker/distribution \
|
||||
&& (cd /go/src/github.com/docker/distribution && git checkout -q $REGISTRY_COMMIT) \
|
||||
&& go get -d github.com/docker/distribution/cmd/registry \
|
||||
&& go build -o /go/bin/registry-v2 github.com/docker/distribution/cmd/registry
|
||||
|
||||
# Wrap all commands in the "docker-in-docker" script to allow nested containers
|
||||
ENTRYPOINT ["hack/dind"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue