daemonize= /var/log/yardstick/uwsgi.log
 socket = /var/run/yardstick.sock
 EOF
+    if [[ "${YARDSTICK_VENV}" ]];then
+        echo "virtualenv = ${YARDSTICK_VENV}" >> "${uwsgi_config}"
+    fi
 fi
 
 # nginx config
 
 ENV YARDSTICK_REPO_DIR ${REPOS_DIR}/yardstick
 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
 
-RUN apt-get update && apt-get install -y git
+RUN apt-get update && apt-get install -y git python-setuptools python-pip
+RUN easy_install -U setuptools==30.0.0
+RUN pip install appdirs==1.4.0
+
 RUN mkdir -p ${REPOS_DIR}
 
 RUN git config --global http.sslVerify false
 
     uwsgi-plugin-python \
     supervisor \
     python-pip \
-    vim \
-    python-setuptools && \
-    easy_install -U setuptools==30.0.0
+    vim
 
 apt-get -y autoremove && apt-get clean
 
 
 ##############################################################################
 
 ansible==2.2.0.0
-appdirs==1.4.0
 Babel==2.3.4
 backport-ipaddress==0.1
 cliff==2.3.0
 
 TESTSUITE_DIR = join(YARDSTICK_ROOT_PATH, 'tests/opnfv/test_suites/')
 
 # file
-OPENRC = get_param('file.openrc', '/etc/yardstick/yardstick.conf')
+OPENRC = get_param('file.openrc', '/etc/yardstick/openstack.creds')
 CONF_FILE = join(CONF_DIR, 'yardstick.conf')
 CONF_SAMPLE_FILE = join(CONF_SAMPLE_DIR, 'yardstick.conf.sample')
 FETCH_SCRIPT = get_param('file.fetch_script', 'utils/fetch_os_creds.sh')