File tree 5 files changed +113
-0
lines changed
5 files changed +113
-0
lines changed Original file line number Diff line number Diff line change
1
+ * .egg-info
2
+ * .pyc
3
+ * .swo
4
+ * .swp
5
+ .cache
6
+ .coverage *
7
+ .DS_Store
8
+ .idea
9
+ tags
10
+
11
+ /.tox
12
+ /binaries
13
+ /build
14
+ /compose /GITSHA
15
+ /coverage-html
16
+ /dist
17
+ /docs /_site
18
+ /README.rst
19
+ /* venv
Original file line number Diff line number Diff line change
1
+ =======
2
+ Changes
3
+ =======
4
+
5
+
6
+ 0.0.1 - April 9, 2019
7
+ ===================
8
+ * Initial release.
Original file line number Diff line number Diff line change
1
+ # iperf3 service in a Docker container
2
+
3
+ ## Install Docker and Docker-compose
4
+
5
+ ### Windows
6
+
7
+ Not yet support
8
+
9
+ https://docs.docker.com/docker-for-windows/install/
10
+
11
+ and it contained docker-compose.
12
+
13
+ ### Linux
14
+
15
+ Install Docker and select Docker CE is fine.
16
+
17
+ - [ CentOS] ( https://docs.docker.com/install/linux/docker-ce/centos/ )
18
+ - [ Debian] ( https://docs.docker.com/install/linux/docker-ce/debian/ )
19
+ - [ Fedora] ( https://docs.docker.com/install/linux/docker-ce/fedora/ )
20
+ - [ Ubuntu] ( https://docs.docker.com/install/linux/docker-ce/ubuntu/ )
21
+
22
+ Install docker-compose.
23
+
24
+ https://docs.docker.com/compose/install/
25
+
26
+ ## Run it
27
+
28
+ ``` shell
29
+ > git clone git@github.com:tknv/iperf3-docker-compose
30
+ > cd iperf3-docker-compose
31
+ > docker-compose build --no-cache
32
+ > docker-compose up
33
+ ```
34
+
35
+ ## iperf3 it
36
+
37
+ ``` shell
38
+ > iperf3 -c < Dcoker host IP address> -p 50001
39
+ ```
40
+
41
+ ## Customize it
42
+
43
+ ` vim docker-compose.yml `
44
+
45
+ ``` yaml
46
+ ...
47
+ ports :
48
+ - " <which port from>:5001/tcp"
49
+ - " <which port from>:5001/udp"
50
+ ...
51
+ command : iperf3 -s <options> -p 5001
52
+ ...
53
+ ```
54
+
55
+ That's it.
56
+
57
+
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+
3
+ services :
4
+ test :
5
+ build :
6
+ context : iperf3
7
+ dockerfile : Dockerfile
8
+ container_name : " iperf3"
9
+ ports :
10
+ - " 50001:5001/tcp"
11
+ - " 50001:5001/udp"
12
+ networks :
13
+ - public
14
+ - private
15
+ dns_search : .
16
+ command : iperf3 -s -V -d -p 5001
17
+
18
+ networks :
19
+ public :
20
+ driver : bridge
21
+ private :
22
+ driver : bridge
Original file line number Diff line number Diff line change
1
+ FROM alpine:3.8
2
+ # install pkg
3
+ RUN apk add --no-cache iperf3
4
+ EXPOSE 22 5963 5001
5
+ RUN ip a
6
+ RUN which iperf3
7
+
You can’t perform that action at this time.
0 commit comments