github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/cli/dockerfiles/Dockerfile.e2e (about)

     1  ARG GO_VERSION=1.19.7
     2  
     3  # Use Debian based image as docker-compose requires glibc.
     4  FROM golang:${GO_VERSION}-buster
     5  
     6  RUN apt-get update && apt-get install -y \
     7      build-essential \
     8      curl \
     9      openssl \
    10      openssh-client \
    11      && rm -rf /var/lib/apt/lists/*
    12  
    13  ARG COMPOSE_VERSION=1.29.2
    14  RUN curl -fsSL https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose \
    15      && chmod +x /usr/local/bin/docker-compose
    16  
    17  ARG NOTARY_VERSION=v0.6.1
    18  RUN curl -fsSL https://github.com/theupdateframework/notary/releases/download/${NOTARY_VERSION}/notary-Linux-amd64 -o /usr/local/bin/notary \
    19      && chmod +x /usr/local/bin/notary
    20  
    21  ARG GOTESTSUM_VERSION=1.8.2
    22  RUN curl -fsSL https://github.com/gotestyourself/gotestsum/releases/download/v${GOTESTSUM_VERSION}/gotestsum_${GOTESTSUM_VERSION}_linux_amd64.tar.gz -o gotestsum.tar.gz \
    23      && tar -xf gotestsum.tar.gz gotestsum \
    24      && mv gotestsum /usr/local/bin/gotestsum \
    25      && rm gotestsum.tar.gz 
    26  
    27  ENV CGO_ENABLED=0 \
    28      DISABLE_WARN_OUTSIDE_CONTAINER=1 \
    29      PATH=/go/src/github.com/docker/cli/build:$PATH
    30  WORKDIR /go/src/github.com/docker/cli
    31  
    32  # Trust notary CA cert.
    33  COPY e2e/testdata/notary/root-ca.cert /usr/share/ca-certificates/notary.cert
    34  RUN echo 'notary.cert' >> /etc/ca-certificates.conf && update-ca-certificates
    35  
    36  COPY . .
    37  ARG VERSION
    38  ARG GITCOMMIT
    39  ENV VERSION=${VERSION}
    40  ENV GITCOMMIT=${GITCOMMIT}
    41  ENV DOCKER_BUILDKIT=1
    42  RUN ./scripts/build/binary
    43  RUN ./scripts/build/plugins e2e/cli-plugins/plugins/*
    44  
    45  CMD ./scripts/test/e2e/entry