Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
iPerf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
iPerf
Commits
86cf9e5c
Verified
Commit
86cf9e5c
authored
6 months ago
by
Chris Coley
Browse files
Options
Downloads
Patches
Plain Diff
Push images to Docker Hub
parent
fabc08e4
Branches
main
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-0
8 additions, 0 deletions
.gitlab-ci.yml
README.md
+39
-3
39 additions, 3 deletions
README.md
with
47 additions
and
3 deletions
.gitlab-ci.yml
+
8
−
0
View file @
86cf9e5c
...
@@ -3,6 +3,9 @@ stages:
...
@@ -3,6 +3,9 @@ stages:
-
test
-
test
-
release
-
release
variables
:
DOCKER_HUB_REPO
:
ccoley/iperf
.build
:
.build
:
...
@@ -79,6 +82,7 @@ test:iperf3:
...
@@ -79,6 +82,7 @@ test:iperf3:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
before_script
:
before_script
:
-
crane auth login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
-
crane auth login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
-
crane auth login -u "$DOCKER_HUB_USERNAME" -p "$DOCKER_HUB_TOKEN" index.docker.io
release:iperf2
:
release:iperf2
:
extends
:
.release
extends
:
.release
...
@@ -86,6 +90,8 @@ release:iperf2:
...
@@ -86,6 +90,8 @@ release:iperf2:
script
:
script
:
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf2
2.2
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf2
2.2
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf2
2
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf2
2
-
crane copy ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf2 ${DOCKER_HUB_REPO}:2.2
-
crane tag ${DOCKER_HUB_REPO}:2.2
2
release:iperf3
:
release:iperf3
:
extends
:
.release
extends
:
.release
...
@@ -93,5 +99,7 @@ release:iperf3:
...
@@ -93,5 +99,7 @@ release:iperf3:
script
:
script
:
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf3
3.17
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf3
3.17
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf3
3
-
crane tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf3
3
-
crane copy ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-iperf3 ${DOCKER_HUB_REPO}:3.17
-
crane tag ${DOCKER_HUB_REPO}:3.17
3
# vi: set ts=2 sw=2 et ft=yaml:
# vi: set ts=2 sw=2 et ft=yaml:
This diff is collapsed.
Click to expand it.
README.md
+
39
−
3
View file @
86cf9e5c
# iPerf
# iPerf
Image
This
is an image for running iPerf. Both iPerf 2
an
d
i
P
erf
3 are available
.
This
repo builds two Docker images meant for use as
an i
p
erf
server
.
iPerf runs in server mode with default port and settings.
## Tags
There are images available with iPerf 2 or iPerf 3.
-
`3.17`
,
`3`
contain iPerf 3
-
`2.2`
,
`2`
contain iPerf 2
## Usage
The images default to running in server mode on the default port, which is 5001 for iPerf 2 and 5201 for iPerf 3.
### Server Mode
Running an iPerf 3 server:
```
bash
docker run
--rm
-p
5201:5201 ccoley/iperf:3
```
Running an iPerf 2 server:
```
bash
docker run
--rm
-p
5001:5001 ccoley/iperf:2
```
### Client Mode
Running iPerf 3 in client mode:
```
bash
docker run
--rm
-t
ccoley/iperf:3
-c
<iperf3-server>
```
Running iPerf 2 in client mode:
```
bash
docker run
--rm
-t
ccoley/iperf:2
-c
<iperf2-server>
-i
1
```
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment