Make e2e test image

- Build image that contains everything needed to run e2e tests
- Add ability to run e2e tests against an endpoint

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
This commit is contained in:
Christopher Crone
2018-05-17 13:11:59 +02:00
parent daf021fe60
commit 6b38918ce4
22 changed files with 272 additions and 109 deletions

View File

@ -17,12 +17,6 @@ RUN go get -d github.com/mjibson/esc && \
go build -v -o /usr/bin/esc . && \
rm -rf /go/src/* /go/pkg/* /go/bin/*
# FIXME(vdemeester) only used for e2e, could be in e2e special image in the future
ARG NOTARY_VERSION=v0.6.0
RUN export URL=https://github.com/theupdateframework/notary/releases/download; \
curl -Ls $URL/${NOTARY_VERSION}/notary-Linux-amd64 -o /usr/local/bin/notary && \
chmod +x /usr/local/bin/notary
ENV CGO_ENABLED=0 \
PATH=$PATH:/go/src/github.com/docker/cli/build \
DISABLE_WARN_OUTSIDE_CONTAINER=1