12 Commits

Author SHA1 Message Date
Arnout Vandecappelle (Essensium/Mind)
7adc105386 docker: README.md: update with builder instead of runner image
While we're at it, clean up the documentation a little.

The "all" container is not really used for anything any more, so it's
documentation is removed.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2020-09-03 14:13:34 +00:00
Vitaly Bukhovsky
cf478311b8 docker: remove zmq development packages
Signed-off-by: Vitaly Bukhovsky <vitaly@devalore.com>
2020-07-08 12:03:20 +00:00
Ivan Efimov
d7e39a507c README.md: mention option to make build output more verbose
Add note how run cmake build with verbose output
(option "--make-verbose" of maptools.py)

Make path "./tools/docker/all" relative to folder of nearest README.md

Signed-off-by: Ivan Efimov <i.efimov@inango-systems.com>
2020-05-31 12:12:28 +00:00
Arnout Vandecappelle (Essensium/Mind)
f1fb1cb9da tools/docker/README.md: replace reference to tcpdump with dumpcap
dumpcap is used instead of tcpdump for running the tests, so update the
reference to it in the README. While we're at it, add tshark as a
possibility for doing the capture a few lines above.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2020-05-21 14:42:33 +00:00
Arnout Vandecappelle (Essensium/Mind)
e792a1542c tools/docker/README.md: tcpdump and tshark are needed for running tests
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2020-05-07 10:47:40 +02:00
Arnout Vandecappelle (Essensium/Mind)
d4d25eb49b docker: README.md: update according to latest changes
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2020-05-06 15:34:39 +00:00
Raphaël Mélotte
84f4c91e91 tools: docker: README.md: add docker logs to the cheatsheet
Docker logs is very useful to check what happened when something goes
wrong.

For example, it allows to check if the ebtables rules was applied
correctly or not. When it wasn't, "docker logs gateway-$USER"
gives (among other things):

modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.0-6-amd64/modules.dep.bin'
modprobe: FATAL: Module ebtables not found in directory /lib/modules/4.19.0-6-amd64
The kernel doesn't support the ebtables 'filter' table.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
2020-04-20 17:45:29 +00:00
Tomer Eliyahu
e10d63c64e tools: docker: add full build & run docker image
The "all" docker allows building and running prplMesh inside containers.
It includes all the tools used for building and running prplMesh, and is
mainly used for running prplMesh on Windows.

Build this image:

cd tools/docker/all
docker image build --tag prplmesh-all .

The current use case for using the `all` image is to run prplMesh on a
Windows host for connecting to the WiFi TestSuite wts application (UCC).
This is done by running the container (mapping the sources or cloning
them from within the container) in priviliged mode on port X which is
set in the UCC as the DUT port:

docker container run -v //c/Users/prplMesh/dev1/:/work/dev1
  --privileged -p 5000:5000 --expose 5000 --name gateway -d --user=0:0
  --interactive --tty --entrypoint bash --rm prplmesh-windows

Signed-off-by: Tomer Eliyahu <tomer.b.eliyahu@intel.com>
2019-08-21 16:41:23 +03:00
Semyon Barenboym
f90e3cbed6 docker:md: Add reference to non sudo docker use
There is an option to use docker without sudo,
For that, one must add a user to a docker group.

Added reference to the guide and removed the sudo from all the commands usage.

Signed-off-by: Semyon Barenboym <simonbaren@gmail.com>
2019-07-09 16:27:56 +03:00
Tomer Eliyahu
5aea00cf85 tools: docker: add test.sh script
Add test.sh, simple wrapper for prplmesh_utils.sh status which will be
called by CI.

Signed-off-by: Tomer Eliyahu <tomer.b.eliyahu@intel.com>
2019-07-07 01:31:43 +03:00
tbeliyah
14f7655fa4 tools: docker automatic image build fix
runner and builder docker helper scripts support building the images
automatically if are not found. However, since the last change, the
path for ./image-build.sh has changed, so if images are not prebuilt the
scripts fail.
This commit fixes this and updates the README.md by moving the scripts
one directory up to `prplMesh/tools/docker`.

Signed-off-by: tbeliyah <tomer.b.eliyahu@intel.com>
2019-07-01 16:03:02 +02:00
tbeliyah
832fb56388 tools: docker unify image-build.sh
Unify image-build.sh to support building both prplmesh-build and
prplmesh-runner docker images.

Signed-off-by: tbeliyah <tomer.b.eliyahu@intel.com>
2019-07-01 15:41:24 +03:00