ppc64le now installs the second registry used for
f11b6a2ab313a03d051dd6f69d264d0482df72d6
Also, removed notary until the change to go 1.5.1+
Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
... | ... |
@@ -104,26 +104,33 @@ RUN git clone https://github.com/golang/lint.git /go/src/github.com/golang/lint |
104 | 104 |
&& (cd /go/src/github.com/golang/lint && git checkout -q $GO_LINT_COMMIT) \ |
105 | 105 |
&& go install -v github.com/golang/lint/golint |
106 | 106 |
|
107 |
- |
|
108 |
-# Install registry |
|
109 |
-ENV REGISTRY_COMMIT ec87e9b6971d831f0eff752ddb54fb64693e51cd |
|
107 |
+# Install two versions of the registry. The first is an older version that |
|
108 |
+# only supports schema1 manifests. The second is a newer version that supports |
|
109 |
+# both. This allows integration-cli tests to cover push/pull with both schema1 |
|
110 |
+# and schema2 manifests. |
|
111 |
+ENV REGISTRY_COMMIT_SCHEMA1 ec87e9b6971d831f0eff752ddb54fb64693e51cd |
|
112 |
+ENV REGISTRY_COMMIT a7ae88da459b98b481a245e5b1750134724ac67d |
|
110 | 113 |
RUN set -x \ |
111 | 114 |
&& export GOPATH="$(mktemp -d)" \ |
112 | 115 |
&& git clone https://github.com/docker/distribution.git "$GOPATH/src/github.com/docker/distribution" \ |
113 | 116 |
&& (cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT") \ |
114 | 117 |
&& GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH" \ |
115 | 118 |
go build -o /usr/local/bin/registry-v2 github.com/docker/distribution/cmd/registry \ |
119 |
+ && (cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT_SCHEMA1") \ |
|
120 |
+ && GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH" \ |
|
121 |
+ go build -o /usr/local/bin/registry-v2-schema1 github.com/docker/distribution/cmd/registry \ |
|
116 | 122 |
&& rm -rf "$GOPATH" |
117 | 123 |
|
124 |
+# TODO update this when we upgrade to Go 1.5.1+ |
|
118 | 125 |
# Install notary server |
119 |
-ENV NOTARY_COMMIT 8e8122eb5528f621afcd4e2854c47302f17392f7 |
|
120 |
-RUN set -x \ |
|
121 |
- && export GOPATH="$(mktemp -d)" \ |
|
122 |
- && git clone https://github.com/docker/notary.git "$GOPATH/src/github.com/docker/notary" \ |
|
123 |
- && (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_COMMIT") \ |
|
124 |
- && GOPATH="$GOPATH/src/github.com/docker/notary/Godeps/_workspace:$GOPATH" \ |
|
125 |
- go build -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \ |
|
126 |
- && rm -rf "$GOPATH" |
|
126 |
+#ENV NOTARY_COMMIT 8e8122eb5528f621afcd4e2854c47302f17392f7 |
|
127 |
+#RUN set -x \ |
|
128 |
+# && export GOPATH="$(mktemp -d)" \ |
|
129 |
+# && git clone https://github.com/docker/notary.git "$GOPATH/src/github.com/docker/notary" \ |
|
130 |
+# && (cd "$GOPATH/src/github.com/docker/notary" && git checkout -q "$NOTARY_COMMIT") \ |
|
131 |
+# && GOPATH="$GOPATH/src/github.com/docker/notary/Godeps/_workspace:$GOPATH" \ |
|
132 |
+# go build -o /usr/local/bin/notary-server github.com/docker/notary/cmd/notary-server \ |
|
133 |
+# && rm -rf "$GOPATH" |
|
127 | 134 |
|
128 | 135 |
# Get the "docker-py" source so we can run their integration tests |
129 | 136 |
ENV DOCKER_PY_COMMIT e2878cbcc3a7eef99917adc1be252800b0e41ece |