github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/metrics/network/nuttcp_dockerfile/Dockerfile (about)

     1  # Copyright (c) 2018 Intel Corporation
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  
     5  # Usage: FROM [image name]
     6  FROM ubuntu
     7  
     8  # Version of the Dockerfile
     9  LABEL DOCKERFILE_VERSION="1.0"
    10  
    11  # Version of nuttcp
    12  ARG NUTTCP_VERSION="7.3.2"
    13  
    14  # Install iperf
    15  RUN apt-get update && \
    16      apt-get remove -y unattended-upgrades && \
    17      apt-get install -y \
    18      build-essential \
    19      curl
    20  
    21  # Install nuttcp (Network performance measurement tool)
    22  RUN cd $HOME && \
    23      curl -OkL "http://nuttcp.net/nuttcp/beta/nuttcp-${NUTTCP_VERSION}.c" && \
    24      gcc nuttcp-${NUTTCP_VERSION}.c -o nuttcp
    25  
    26  CMD ["/bin/bash"]