X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=validation.git;a=blobdiff_plain;f=docker%2FREADME.rst;h=1deab89cc423efa3a4ee0bfcebc4bda0ad475afd;hp=7179bee41c26714fcdf8410220fdd611cc65323c;hb=b4b3a0e950a01f3ed9eedda7480cffecc989bdf1;hpb=18a580a13deb2f408b6e2c1627febb940d05cee6 diff --git a/docker/README.rst b/docker/README.rst index 7179bee..1deab89 100644 --- a/docker/README.rst +++ b/docker/README.rst @@ -275,6 +275,46 @@ want to enter the container, add */bin/sh* at the end of the command above. Normally, this conainer is not used directly, but instead leveraged via sonobuoy. +The openstack container +======================= + +Building and pushing the container +---------------------------------- + +To build just the openstack container, use the command: + +.. code-block:: console + + make openstack-build [ REGISTRY= NAME=] + +To both build and push the container, use the command: + +.. code-block:: console + + make openstack [ REGISTRY= NAME=] + +Using the container +------------------- + +The openstack image is meant to be ran from a server that has access to the +openstack deployment (jenkins slave, jumpserver, etc). + +Before running the image, copy openstack deployment environment variables +(openrc) to a local folder (e.g. /root/openrc). + +Container needs to be started with the openrc file mounted. Optionally, test +cases can be excluded from execution via a mounted blacklist file. + +The results folder can be mounted as well; this way the logs are +stored on the local server. + +.. code-block:: console + + docker run -ti -v /home/jenkins/openrc:/root/openrc \ + -v /home/jenkins/blacklist.txt:/opt/akraino/validation/tests/openstack/tempest/blacklist.txt \ + -v /home/jenkins/openstack_results:/opt/akraino/results/ \ + akraino/validation:openstack-latest + The helm container ==================