# docker pull opnfv/yardstick:stable
# docker run -itd --privileged=true -v /var/run/docker.sock:/var/run/docker.sock -p8848:5000 --name yardstick-gui opnfv/yardstick:stable
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ec2a08fd9ea7 opnfv/yardstick:stable "/usr/bin/supervisord" 7 hours ago Up 7 hours 5672/tcp,0.0.0.0:8848->5000/tcp yardstick-gui
# docker exec -itec2a08fd9ea7 /bin/bash
root@ec2a08fd9ea7:/home/opnfv/repos#./yardstick/gui/gui.sh
root@ec2a08fd9ea7:/home/opnfv/repos#vim /etc/nginx/conf.d/yardstick.conf
location /gui/ {
alias /etc/nginx/yardstick/gui/;
}
# cp ./yardstick/gui/* /etc/nginx/yardstick/gui/
Access to http://{HOST_IP:PORT}/gui/index.html to see the dashboard and launch associate docker instance (influxdb and grafana)
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0e9c4b3b41e grafana/grafana:4.4.3 "/run.sh" 48 seconds ago Up 47 seconds 0.0.0.0:6392->3000/tcp grafana-9db01b7f
85e397c171f6 tutum/influxdb:0.13 "/run.sh" 53 seconds ago Up 52 seconds 7780/tcp, 8083/tcp,0.0.0.0:7780->8086/tcp influxdb-9db01b7f
ec2a08fd9ea7 opnfv/yardstick:stable "/usr/bin/supervisord" 7 hours ago Up 7 hours 5672/tcp,0.0.0.0:8848->5000/tcp yardstick-gui
# docker exec-it ec2a08fd9ea7 /bin/bash
root@ec2a08fd9ea7:/home/opnfv/repos#yardstick env prepare
No handlers could be found forlogger "yardstick.common.utils"
/usr/local/lib/python2.7/dist-packages/flask/exthook.py:71:ExtDeprecationWarning: Importing flask.ext.restful is deprecated, useflask_restful instead.
.format(x=modname), ExtDeprecationWarning
* preparing yardstickenvironment[Finished]
Check the logs in folders below
# tail -f /tmp/yardstick/yardstick.log