go.ligato.io/vpp-agent/v3@v3.5.0/tests/e2e/e2etest/Dockerfile.e2e (about)

     1  FROM golang:1.18 as build
     2  
     3  RUN env CGO_ENABLED=0 \
     4   	go build -ldflags='-s -w -extldflags "-static"' -o /test2json cmd/test2json
     5  
     6  FROM ubuntu:20.04
     7  
     8  RUN apt-get update && apt-get install -yq \
     9  		curl \
    10  		git \
    11  		iproute2 \
    12  		iputils-ping \
    13  		make \
    14  		nano \
    15  		netcat \
    16  		wget \
    17   	&& rm -rf /var/lib/apt/lists/*
    18  
    19  # Install test tools
    20  # - test2json
    21  # - gotestsum
    22  
    23  COPY --from=build /test2json /usr/local/bin/test2json
    24  
    25  ARG GOTESTSUM_VERSION=1.8.1
    26  RUN set -eux; \
    27  	curl -fsSL https://github.com/gotestyourself/gotestsum/releases/download/v${GOTESTSUM_VERSION}/gotestsum_${GOTESTSUM_VERSION}_linux_amd64.tar.gz -o gotestsum.tar.gz; \
    28      tar -xf gotestsum.tar.gz gotestsum; \
    29      mv gotestsum /usr/local/bin/gotestsum; \
    30      rm gotestsum.tar.gz
    31  
    32  COPY agentctl.test /usr/local/bin/agentctl
    33  COPY e2e.test /
    34  
    35  COPY entrypoint.sh /entrypoint.sh
    36  ENTRYPOINT [ "/entrypoint.sh" ]