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

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