summaryrefslogtreecommitdiffstats
path: root/docs/testing/user/userguide/quickstart_docker.rst
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-09-22 10:09:44 -0700
committerKerim Gokarslan <kgokarsl@cisco.com>2017-09-22 12:20:32 -0700
commitbed1d001b77f5932deebb57ac53cc95d3f61b95f (patch)
treebe200bbab2763181c3cf01ade858e93fac587883 /docs/testing/user/userguide/quickstart_docker.rst
parente48bccd826dff1c917cbc4a4e55087b5ef2e3ed8 (diff)
Documentation update1.0.10
Change-Id: I7f7f2fab620ed42723093aac459622f993941e32 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
Diffstat (limited to 'docs/testing/user/userguide/quickstart_docker.rst')
-rw-r--r--docs/testing/user/userguide/quickstart_docker.rst26
1 files changed, 16 insertions, 10 deletions
diff --git a/docs/testing/user/userguide/quickstart_docker.rst b/docs/testing/user/userguide/quickstart_docker.rst
index 98d4d25..ccb629b 100644
--- a/docs/testing/user/userguide/quickstart_docker.rst
+++ b/docs/testing/user/userguide/quickstart_docker.rst
@@ -38,11 +38,15 @@ The NFVbench container requires the following Docker options to operate properly
| | /tmp/nfvbench director in the container but any |
| | other similar mapping can work as well |
+------------------------------------------------------+------------------------------------------------------+
-| --net=host | (optional) needed if you run the NFVbench REST |
+| --net=host | (optional) needed if you run the NFVbench ok |
| | server in the container (or use any appropriate |
| | docker network mode other than "host") |
+------------------------------------------------------+------------------------------------------------------+
-| --privilege | (optional) required if SELinux is enabled on the host|
+| --privileged | (optional) required if SELinux is enabled on the host|
++------------------------------------------------------+------------------------------------------------------+
+| --e HOST="127.0.0.1" | (optional) required if REST server is enabled |
++------------------------------------------------------+------------------------------------------------------+
+| --e PORT=7556 | (optional) required if REST server is enabled |
+------------------------------------------------------+------------------------------------------------------+
It can be convenient to write a shell script (or an alias) to automatically insert the necessary options.
@@ -57,11 +61,18 @@ The second approach is more responsive as the delay is only incurred once when s
We will take the second approach and start the NFVbench container in detached mode with the name "nfvbench" (this works with bash, prefix with "sudo" if you do not use the root login)
+To run NFVBench without server mode
+
.. code-block:: bash
- docker run --detach --net=host --privileged -v $PWD:/tmp/nfvbench -v /dev:/dev -v /lib/modules/$(uname -r):/lib/modules/$(uname -r) --name nfvbench opnfv/nfvbench tail -f /dev/null
+ docker run --detach --net=host --privileged -v $PWD:/tmp/nfvbench -v /dev:/dev -v /lib/modules/$(uname -r):/lib/modules/$(uname -r) --name nfvbench opnfv/nfvbench
+
+To run NFVBench enabling REST server
+
+.. code-block:: bash
+
+ docker run --detach --net=host --privileged -e HOST="127.0.0.1" -e PORT=7556 -v $PWD:/tmp/nfvbench -v /dev:/dev -v /lib/modules/$(uname -r):/lib/modules/$(uname -r) --name nfvbench opnfv/nfvbench start_rest_server
-The tail command simply prevents the container from exiting.
The create an alias to make it easy to execute nfvbench commands directly from the host shell prompt:
@@ -146,12 +157,7 @@ Alternatively, the full template with comments can be obtained using the --show-
Edit the nfvbench.cfg file to only keep those properties that need to be modified (preserving the nesting)
-5. Upload the NFVbench loopback VM image to OpenStack
------------------------------------------------------
-[TBP URL to NFVbench VM image in the OPNFV artifact repository]
-
-
-6. Run NFVbench
+5. Run NFVbench
---------------
To do a single run at 10,000pps bi-directional (or 5kpps in each direction) using the PVP packet path: