Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -33,7 +33,7 @@ RUN ./hack/dockerfile/install/install.sh dockercli |
| 33 | 33 |
# Set tag and add sources |
| 34 | 34 |
ARG DOCKER_GITCOMMIT |
| 35 | 35 |
ENV DOCKER_GITCOMMIT=${DOCKER_GITCOMMIT:-undefined}
|
| 36 |
-ADD . . |
|
| 36 |
+COPY . . |
|
| 37 | 37 |
|
| 38 | 38 |
# Build DockerSuite.TestBuild* dependency |
| 39 | 39 |
RUN CGO_ENABLED=0 go build -buildmode=pie -o /output/httpserver github.com/docker/docker/contrib/httpserver |
| ... | ... |
@@ -45,6 +45,13 @@ RUN mkdir -p /output/tests && find . -name test.main -exec cp --parents '{}' /ou
|
| 45 | 45 |
## Generate testing image |
| 46 | 46 |
FROM alpine:3.9 as runner |
| 47 | 47 |
|
| 48 |
+ENV DOCKER_REMOTE_DAEMON=1 |
|
| 49 |
+ENV DOCKER_INTEGRATION_DAEMON_DEST=/ |
|
| 50 |
+ENTRYPOINT ["/scripts/run.sh"] |
|
| 51 |
+ |
|
| 52 |
+# Add an unprivileged user to be used for tests which need it |
|
| 53 |
+RUN addgroup docker && adduser -D -G docker unprivilegeduser -s /bin/ash |
|
| 54 |
+ |
|
| 48 | 55 |
# GNU tar is used for generating the emptyfs image |
| 49 | 56 |
RUN apk --no-cache add \ |
| 50 | 57 |
bash \ |
| ... | ... |
@@ -56,8 +63,8 @@ RUN apk --no-cache add \ |
| 56 | 56 |
tar \ |
| 57 | 57 |
xz |
| 58 | 58 |
|
| 59 |
-# Add an unprivileged user to be used for tests which need it |
|
| 60 |
-RUN addgroup docker && adduser -D -G docker unprivilegeduser -s /bin/ash |
|
| 59 |
+COPY hack/test/e2e-run.sh /scripts/run.sh |
|
| 60 |
+COPY hack/make/.ensure-emptyfs /scripts/ensure-emptyfs.sh |
|
| 61 | 61 |
|
| 62 | 62 |
COPY contrib/httpserver/Dockerfile /tests/contrib/httpserver/Dockerfile |
| 63 | 63 |
COPY contrib/syscall-test /tests/contrib/syscall-test |
| ... | ... |
@@ -65,14 +72,7 @@ COPY integration/testdata /tests/integration/testdata |
| 65 | 65 |
COPY integration/build/testdata /tests/integration/build/testdata |
| 66 | 66 |
COPY integration-cli/fixtures /tests/integration-cli/fixtures |
| 67 | 67 |
|
| 68 |
-COPY hack/test/e2e-run.sh /scripts/run.sh |
|
| 69 |
-COPY hack/make/.ensure-emptyfs /scripts/ensure-emptyfs.sh |
|
| 70 |
- |
|
| 71 | 68 |
COPY --from=frozen-images /build/ /docker-frozen-images |
| 72 | 69 |
COPY --from=builder /output/httpserver /tests/contrib/httpserver/httpserver |
| 73 | 70 |
COPY --from=builder /output/tests /tests |
| 74 | 71 |
COPY --from=builder /usr/local/bin/docker /usr/bin/docker |
| 75 |
- |
|
| 76 |
-ENV DOCKER_REMOTE_DAEMON=1 DOCKER_INTEGRATION_DAEMON_DEST=/ |
|
| 77 |
- |
|
| 78 |
-ENTRYPOINT ["/scripts/run.sh"] |