add iperf microservice based on the individual iperf bundle

This commit is contained in:
Wang, Long
2019-05-06 09:50:57 +08:00
committed by George T Kramer
parent aefdb54adc
commit fbf25a8657
3 changed files with 36 additions and 0 deletions
+1
View File
@@ -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
+13
View File
@@ -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
+22
View File
@@ -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