[WIFI-11619] Upd: Docker instructions update (#739)

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
Dmitry Dunaev
2022-11-17 16:18:40 +03:00
committed by GitHub
parent 823a9b21a8
commit 8bacfa9e39
2 changed files with 21 additions and 1 deletions

View File

@@ -153,6 +153,9 @@ npm install -g allure-commandline --save-dev
```
# Docker Setup Instructions
This repository support building Docker image from bundled [Dockerfile](./docker/Dockerfile). If you want to use it for testing, please refer to the [related directory for details](./docker).
### Executing and Contributing new test cases

View File

@@ -3,11 +3,28 @@
### Building a docker image
From the root directory of this repository (wlan-testing) run the following command:
```bash
docker build -f ./docker/Dockerfile -t wlantest .
```
This will produce a docker image, which you can verify by running docker images command.
By default image will run [setup_env.bash](../setup_env.bash) that will install all required dependencies for tests against all supported devices and version 2 of Cloud SDK (see https://github.com/Telecominfraproject/wlan-cloud-ucentral-deploy/ for details).
If you want to modify this logic, you may pass different build arguments to the build. Supported arguments:
- CLOUDSDK_LIBRARY - Cloud SDK library that should be used for tests (by default `tip_2x` will be used);
- TEST_DEVICE_NAME - device type that should be installed as a depencency (by default `all` will be used).
Check [setup_env.bash](../setup_env.bash) for more details on supported parameters.
Example on how to pass build arguments:
```bash
docker build -f ./docker/Dockerfile -t wlantest --build-arg TEST_DEVICE_NAME=lanforge .
```
### Running a docker image
From the root directory of this repository (wlan-testing) run the following command. This command executes