Building and running docker behind proxy.
If one is behind a proxy it will not be able to run the docker
according to information presented in this readme.
This commit adds a short note how to modify existing scripts
and build the docker when http proxy is used.
Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com>
Change-Id: I74c9ba1a28b5322a4e369a9391d605e280c43c18
diff --git a/testing/run-test-docker.md b/testing/run-test-docker.md
index 87b425c..afb5328 100644
--- a/testing/run-test-docker.md
+++ b/testing/run-test-docker.md
@@ -31,6 +31,11 @@
`./scripts/build-qemu-robot-docker.sh`
+ ###### *Note: When your Docker is behind a proxy, add the following parameters to the build command (use proper IP and PORT values.)*
+
+ ```
+ --build-arg http_proxy=<IP>:<PORT> --build-arg https_proxy=<IP>:<PORT>
+ ```
## Code update process using robot test code
@@ -111,7 +116,7 @@
--env HTTPS_PORT=443 \
--env ROBOT_TEST_CMD="tox -e witherspoon -- tests" \
--workdir ${HOME} \
- --volume ${HOME}/OpenBMC_Automation:${HOME}
+ --volume ${HOME}/OpenBMC_Automation:${HOME} \
--tty openbmc/ubuntu-robot-qemu \
${HOME}/openbmc-build-scripts/scripts/run-robot.sh
```