User Tools

Site Tools


functest_docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
functest_docker [2015/11/26 14:07]
Jose Lausuch
functest_docker [2015/11/27 13:42] (current)
Morgan Richomme
Line 54: Line 54:
     * INSTALLER_IP. Usually "​10.20.0.2"​ for fuel and "​172.30.10.73"​ foreman.     * INSTALLER_IP. Usually "​10.20.0.2"​ for fuel and "​172.30.10.73"​ foreman.
  
-  $ docker run -ti -e "​INSTALLER_TYPE=fuel"​ -e "​INSTALLER_IP=10.20.0.2"​ opnfv/​functest+  $ docker run -ti -e "​INSTALLER_TYPE=fuel"​ -e "​INSTALLER_IP=10.20.0.2" -e "​NODE_NAME=opnfv-jump-2" opnfv/​functest 
 + 
 +note: for the dev labs, it is also possible to precise the path of your openstack creds, see [[https://​wiki.opnfv.org/​functest_docker#​docker_options |Docker Options below]] 
  
 Now, you are inside the docker container. ​ Now, you are inside the docker container. ​
Line 99: Line 102:
   $ docker attach <​ID_of_the_container>​   $ docker attach <​ID_of_the_container>​
  
-===== Docker ​Options ​=====+===== Docker ​options ​=====
 ==== I need to change some parameters in config_functest.yaml ==== ==== I need to change some parameters in config_functest.yaml ====
 In case you need to provide different configuration parameters to Functest (e.g. commit IDs or branches for the repositories,​ ...) copy the config_functest.yaml from the repository to your current directory and run docker with a volume: In case you need to provide different configuration parameters to Functest (e.g. commit IDs or branches for the repositories,​ ...) copy the config_functest.yaml from the repository to your current directory and run docker with a volume:
Line 113: Line 116:
 You can also provide your own OpenStack credentials to the container. This way, it will not try to fetch the credentials automatically contacting the OS controller. You can also provide your own OpenStack credentials to the container. This way, it will not try to fetch the credentials automatically contacting the OS controller.
  
-If you do this, you don't need to specify any more the environment variables INSTALLER_TYPE and INSTALLER_IP,​ since they are used only by that script ​to fetch the credentials automatically (a script called fetch_os_credentials.sh ​does this).+If you do this, you don't need to specify any more the environment variables INSTALLER_TYPE and INSTALLER_IP,​ since they are used only by the script ​that gets the credentials automatically (a script called fetch_os_credentials.sh).
   $ docker run -t opnfv/​functest \   $ docker run -t opnfv/​functest \
     -v $(pwd)/<​your_local_creds_file>:/​home/​opnfv/​functest/​conf/​openstack.creds \     -v $(pwd)/<​your_local_creds_file>:/​home/​opnfv/​functest/​conf/​openstack.creds \
functest_docker.1448546833.txt.gz · Last modified: 2015/11/26 14:07 by Jose Lausuch