github.com/ali-iotechsys/cli@v20.10.0+incompatible/dockerfiles/Dockerfile.e2e (about)

     1  ARG GO_VERSION=1.13.15
     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.25.1
    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=0.4.0
    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  ENV COMPOSE_DOCKER_CLI_BUILD=1
    43  RUN ./scripts/build/binary
    44  RUN ./scripts/build/plugins e2e/cli-plugins/plugins/*
    45  
    46  CMD ./scripts/test/e2e/entry