mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-06-29 00:55:57 +00:00
add iperf microservice based on the individual iperf bundle
This commit is contained in:
committed by
George T Kramer
parent
aefdb54adc
commit
fbf25a8657
@@ -11,6 +11,7 @@ env:
|
||||
- DOCKERFILE_DIR=golang
|
||||
- DOCKERFILE_DIR=haproxy
|
||||
- DOCKERFILE_DIR=httpd
|
||||
- DOCKERFILE_DIR=iperf
|
||||
- DOCKERFILE_DIR=machine-learning-ui
|
||||
- DOCKERFILE_DIR=machine-learning
|
||||
- DOCKERFILE_DIR=mariadb
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
FROM clearlinux:latest
|
||||
MAINTAINER long1.wang@intel.com
|
||||
|
||||
ARG swupd_args
|
||||
|
||||
RUN swupd update --no-boot-update $swupd_args && \
|
||||
swupd bundle-add iperf $swupd_args
|
||||
|
||||
# Define default command
|
||||
ENTRYPOINT ["iperf3"]
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 5201
|
||||
@@ -0,0 +1,22 @@
|
||||
# iperf3 service on clearlinux
|
||||
Iperf is a widely used tool for network performance measurement and tuning.
|
||||
|
||||
## Build
|
||||
```
|
||||
sudo docker build -t clearlinux/iperf .
|
||||
```
|
||||
|
||||
## Run as Server:
|
||||
```
|
||||
sudo docker run -it --rm --name=iperf-srv -p 5201:5201 clearlinux/iperf -s
|
||||
```
|
||||
|
||||
## Run as Client (first get server IP address):
|
||||
```
|
||||
sudo docker run -it --rm --network=host clearlinux/iperf -c <SERVER_IP>
|
||||
```
|
||||
|
||||
## Extra Build ARGs
|
||||
- ``swupd_args`` Specifies [SWUPD](https://github.com/clearlinux/swupd-client/blob/master/docs/swupd.1.rst#options) flags
|
||||
|
||||
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg
|
||||
Reference in New Issue
Block a user