Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #554 from GabyCT/topic/addiperfdockerfile
Browse files Browse the repository at this point in the history
metrics: Add dockerfile for iperf3 tests
  • Loading branch information
chavafg authored Aug 8, 2018
2 parents 98f59f2 + cba820a commit 4749865
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
15 changes: 15 additions & 0 deletions metrics/network/iperf3_dockerfile/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

# Usage: FROM [image name]
FROM fedora

# Version of the Dockerfile
LABEL DOCKERFILE_VERSION="1.0"

# Install iperf3
RUN dnf -y update && \
dnf -y install iperf3

CMD ["/bin/bash"]
9 changes: 4 additions & 5 deletions metrics/network/network-metrics-iperf3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ source "${SCRIPT_PATH}/../lib/common.bash"
port="${port:-5201}"
fwd_port="${fwd_port:-$port:$port}"
# Image name
# Note: This image will be replaced with a
# dockerfile once this issue esnet/iperf#153
# is solved
image="${image:-gabyct/network}"
image="${image:-local-iperf3}"
# Dockerfile
dockerfile="${SCRIPT_PATH}/iperf3_dockerfile/Dockerfile"
# Measurement time (seconds)
transmit_timeout="${transmit_timeout:-30}"

Expand Down Expand Up @@ -565,7 +564,7 @@ function main {
# Check tools/commands dependencies
cmds=("docker" "perf")
check_cmds "${cmds[@]}"
check_images "$image"
check_dockerfiles_images "$image" "$dockerfile"

init_env

Expand Down

0 comments on commit 4749865

Please sign in to comment.