)]}'
{".dockerignore":[{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"f711d5b9a4e2d5e5a39ddc3d3753d10e181a3071","unresolved":false,"context_lines":[{"line_number":1,"context_line":"rally-jobs"},{"line_number":2,"context_line":"samples"},{"line_number":3,"context_line":"tests"},{"line_number":4,"context_line":"Dockerfile"},{"line_number":5,"context_line":"contrib"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"fa32b979_341128b0","line":2,"updated":"2015-06-27 12:08:17.000000000","message":"it would be nice to have samples in docker container","commit_id":"ee5c25e0ebae040b666095ef439369d6b1fa5f5c"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"b84223020901cea40cc3bd7b5c4ce1755f904e84","unresolved":false,"context_lines":[{"line_number":1,"context_line":"rally-jobs"},{"line_number":2,"context_line":"samples"},{"line_number":3,"context_line":"tests"},{"line_number":4,"context_line":"Dockerfile"},{"line_number":5,"context_line":"contrib"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"1a4dcd0f_a447831c","line":2,"in_reply_to":"fa32b979_341128b0","updated":"2015-08-07 20:31:24.000000000","message":"we have even bug related to this: \n\nhttps://bugs.launchpad.net/rally/+bug/1461894","commit_id":"ee5c25e0ebae040b666095ef439369d6b1fa5f5c"}],"Dockerfile":[{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"1e0e364036236736c43f3ddb765b3d0e77a58fb0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"FROM ubuntu:14.04"},{"line_number":2,"context_line":"MAINTAINER Sergey Skripnick \u003csskripnick@mirantis.com\u003e"},{"line_number":3,"context_line":"COPY . /tmp/rally"},{"line_number":4,"context_line":"RUN apt-get update \u0026\u0026 \\"},{"line_number":5,"context_line":"    apt-get -y install git python2.7 bash-completion python-dev libffi-dev \\"}],"source_content_type":"text/x-dockerfile","patch_set":1,"id":"1af86dd1_84b6bbda","side":"PARENT","line":2,"updated":"2015-06-12 20:07:59.000000000","message":"hm you shouldn\u0027t remove maintainer ...","commit_id":"e58385ac291c06d47dec0e03f82cdee76b8b666e"},{"author":{"_account_id":11748,"name":"Chris St. Pierre","email":"cstpierr@cisco.com","username":"stpierre"},"change_message_id":"ea1a865d765ea8266400779326444f6bf89f457b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"FROM ubuntu:14.04"},{"line_number":2,"context_line":"MAINTAINER Sergey Skripnick \u003csskripnick@mirantis.com\u003e"},{"line_number":3,"context_line":"COPY . /tmp/rally"},{"line_number":4,"context_line":"RUN apt-get update \u0026\u0026 \\"},{"line_number":5,"context_line":"    apt-get -y install git python2.7 bash-completion python-dev libffi-dev \\"}],"source_content_type":"text/x-dockerfile","patch_set":1,"id":"1af86dd1_24402756","side":"PARENT","line":2,"in_reply_to":"1af86dd1_84b6bbda","updated":"2015-06-12 20:18:36.000000000","message":"Done","commit_id":"e58385ac291c06d47dec0e03f82cdee76b8b666e"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"0ecb658a80c0983b6b662378b34e9e656fcf7ce2","unresolved":false,"context_lines":[{"line_number":11,"context_line":"    ./install_rally.sh \u0026\u0026\\"},{"line_number":12,"context_line":"    pip install -r optional-requirements.txt \u0026\u0026\\"},{"line_number":13,"context_line":"    sed \u0027s|#*connection *\u003d.*|connection \u003d sqlite:////home/rally/.rally.sqlite|\u0027 -i /etc/rally/rally.conf \u0026\u0026\\"},{"line_number":14,"context_line":"    apt-get -y remove libssl-dev libffi-dev python-dev libxml2-dev \\"},{"line_number":15,"context_line":"                      libxslt1-dev build-essential gcc-4.8 python3 \u0026\u0026 \\"},{"line_number":16,"context_line":"    apt-get -y autoremove \u0026\u0026\\"},{"line_number":17,"context_line":"    apt-get clean \u0026\u0026\\"}],"source_content_type":"text/x-dockerfile","patch_set":1,"id":"1af86dd1_8488fb23","side":"PARENT","line":14,"updated":"2015-06-12 20:06:46.000000000","message":"This line makes image much smaller","commit_id":"e58385ac291c06d47dec0e03f82cdee76b8b666e"},{"author":{"_account_id":11748,"name":"Chris St. Pierre","email":"cstpierr@cisco.com","username":"stpierre"},"change_message_id":"ea1a865d765ea8266400779326444f6bf89f457b","unresolved":false,"context_lines":[{"line_number":11,"context_line":"    ./install_rally.sh \u0026\u0026\\"},{"line_number":12,"context_line":"    pip install -r optional-requirements.txt \u0026\u0026\\"},{"line_number":13,"context_line":"    sed \u0027s|#*connection *\u003d.*|connection \u003d sqlite:////home/rally/.rally.sqlite|\u0027 -i /etc/rally/rally.conf \u0026\u0026\\"},{"line_number":14,"context_line":"    apt-get -y remove libssl-dev libffi-dev python-dev libxml2-dev \\"},{"line_number":15,"context_line":"                      libxslt1-dev build-essential gcc-4.8 python3 \u0026\u0026 \\"},{"line_number":16,"context_line":"    apt-get -y autoremove \u0026\u0026\\"},{"line_number":17,"context_line":"    apt-get clean \u0026\u0026\\"}],"source_content_type":"text/x-dockerfile","patch_set":1,"id":"1af86dd1_a47e57ac","side":"PARENT","line":14,"in_reply_to":"1af86dd1_8488fb23","updated":"2015-06-12 20:18:36.000000000","message":"Done","commit_id":"e58385ac291c06d47dec0e03f82cdee76b8b666e"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"0ecb658a80c0983b6b662378b34e9e656fcf7ce2","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# install prereqs"},{"line_number":4,"context_line":"RUN apt-get update \u0026\u0026 apt-get install --yes wget python"},{"line_number":5,"context_line":"# \u0026\u0026 apt-get install --yes \\"},{"line_number":6,"context_line":"#  build-essential \\"},{"line_number":7,"context_line":"#  git \\"},{"line_number":8,"context_line":"#  libffi-dev \\"}],"source_content_type":"text/x-dockerfile","patch_set":1,"id":"1af86dd1_84d35b38","line":5,"updated":"2015-06-12 20:06:46.000000000","message":"Why not remove this?","commit_id":"ecd1786113495ae9d2fe099d7a5562901ad86d9f"},{"author":{"_account_id":11748,"name":"Chris St. Pierre","email":"cstpierr@cisco.com","username":"stpierre"},"change_message_id":"ea1a865d765ea8266400779326444f6bf89f457b","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# install prereqs"},{"line_number":4,"context_line":"RUN apt-get update \u0026\u0026 apt-get install --yes wget python"},{"line_number":5,"context_line":"# \u0026\u0026 apt-get install --yes \\"},{"line_number":6,"context_line":"#  build-essential \\"},{"line_number":7,"context_line":"#  git \\"},{"line_number":8,"context_line":"#  libffi-dev \\"}],"source_content_type":"text/x-dockerfile","patch_set":1,"id":"1af86dd1_c4815391","line":5,"in_reply_to":"1af86dd1_84d35b38","updated":"2015-06-12 20:18:36.000000000","message":"Done","commit_id":"ecd1786113495ae9d2fe099d7a5562901ad86d9f"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"ec78e9041e3c04f283bd925926ff3ea8764fdb33","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"# create rally user"},{"line_number":14,"context_line":"RUN useradd -u 65500 -m rally \u0026\u0026 \\"},{"line_number":15,"context_line":"  mkdir -p /home/rally \u0026\u0026 \\"},{"line_number":16,"context_line":"  chown -R rally /home/rally \u0026\u0026 \\"},{"line_number":17,"context_line":"  ln -s /usr/share/doc/rally /home/rally/rally-docs"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-dockerfile","patch_set":2,"id":"fa32b979_1eca1ea2","line":15,"updated":"2015-06-15 10:58:37.000000000","message":"this is not needed. option \"-m\" for useradd is enough","commit_id":"be42a8fdc57d1b6b50be98247e604c7cbf58738c"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"9d16ed903e47e08524398cbcd137c7c9625b3555","unresolved":false,"context_lines":[{"line_number":10,"context_line":"    cd /tmp/rally \u0026\u0026\\"},{"line_number":11,"context_line":"    ./install_rally.sh \u0026\u0026\\"},{"line_number":12,"context_line":"    pip install -r optional-requirements.txt \u0026\u0026\\"},{"line_number":13,"context_line":"    sed \u0027s|#*connection *\u003d.*|connection \u003d sqlite:////home/rally/.rally.sqlite|\u0027 -i /etc/rally/rally.conf \u0026\u0026\\"},{"line_number":14,"context_line":"    apt-get -y remove libssl-dev libffi-dev python-dev libxml2-dev \\"},{"line_number":15,"context_line":"                      libxslt1-dev build-essential gcc-4.8 python3 \u0026\u0026 \\"},{"line_number":16,"context_line":"    apt-get -y autoremove \u0026\u0026\\"}],"source_content_type":"text/x-dockerfile","patch_set":3,"id":"fa32b979_9244da74","side":"PARENT","line":13,"updated":"2015-06-15 13:58:47.000000000","message":"This line is important because it makes rally store database in home directory. This is useful when rally is used like described in docs http://rally.readthedocs.org/en/latest/install.html#rally-docker\n(see option -v for docker)\n\nOtherwise a rally database will be lost after you exited container. Sure you can do commit each time, but there is still a problem with upgrading image.","commit_id":"e58385ac291c06d47dec0e03f82cdee76b8b666e"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"9d16ed903e47e08524398cbcd137c7c9625b3555","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"# create rally user"},{"line_number":14,"context_line":"RUN useradd -u 65500 -m rally \u0026\u0026 \\"},{"line_number":15,"context_line":"  chown -R rally /home/rally \u0026\u0026 \\"},{"line_number":16,"context_line":"  ln -s /usr/share/doc/rally /home/rally/rally-docs"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"# install rally. the COPY command below frequently invalidates"}],"source_content_type":"text/x-dockerfile","patch_set":3,"id":"fa32b979_f2d8c655","line":15,"updated":"2015-06-15 13:58:47.000000000","message":"/home/rally is already owned by rally thanks to useradd -m","commit_id":"13ce747a93f3ba92050b783cec4e057e43394ec9"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"e9143218088578fff6f31323db140d0e6fbaca03","unresolved":false,"context_lines":[{"line_number":21,"context_line":"RUN ./install_rally.sh --system --verbose --yes \u0026\u0026 \\"},{"line_number":22,"context_line":"  pip install -r optional-requirements.txt \u0026\u0026 \\"},{"line_number":23,"context_line":"  chmod -R u\u003drwX,go\u003drX /etc/rally \u0026\u0026 \\"},{"line_number":24,"context_line":"  chown -R rally /var/lib/rally/database \u0026\u0026 \\"},{"line_number":25,"context_line":"  mv doc /usr/share/doc/rally"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"# clean up"}],"source_content_type":"text/x-dockerfile","patch_set":4,"id":"fa32b979_d5d98823","line":24,"updated":"2015-06-17 10:32:11.000000000","message":"this line is not needed","commit_id":"55d7eaa5fb5805d82b18555375eeaff91f23ba11"},{"author":{"_account_id":11748,"name":"Chris St. Pierre","email":"cstpierr@cisco.com","username":"stpierre"},"change_message_id":"9df3136dba9baaf8e51148483e4d556ad9a1be4c","unresolved":false,"context_lines":[{"line_number":21,"context_line":"RUN ./install_rally.sh --system --verbose --yes \u0026\u0026 \\"},{"line_number":22,"context_line":"  pip install -r optional-requirements.txt \u0026\u0026 \\"},{"line_number":23,"context_line":"  chmod -R u\u003drwX,go\u003drX /etc/rally \u0026\u0026 \\"},{"line_number":24,"context_line":"  chown -R rally /var/lib/rally/database \u0026\u0026 \\"},{"line_number":25,"context_line":"  mv doc /usr/share/doc/rally"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"# clean up"}],"source_content_type":"text/x-dockerfile","patch_set":4,"id":"fa32b979_ffb1f101","line":24,"in_reply_to":"fa32b979_d5d98823","updated":"2015-06-17 18:18:17.000000000","message":"Done","commit_id":"55d7eaa5fb5805d82b18555375eeaff91f23ba11"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"b3cd6741a587fba9097a383bc739dd4553a195de","unresolved":false,"context_lines":[{"line_number":36,"context_line":"  python3 \\"},{"line_number":37,"context_line":"  \u0026\u0026 \\"},{"line_number":38,"context_line":"  apt-get -y autoremove \u0026\u0026 \\"},{"line_number":39,"context_line":"  apt-get clean"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"# configure database to live in /home/rally, so that we can bind mount"},{"line_number":42,"context_line":"# it and provide ~/.rally and persist the database from the host"}],"source_content_type":"text/x-dockerfile","patch_set":5,"id":"fa32b979_ae5b4085","line":39,"updated":"2015-06-24 08:37:43.000000000","message":"just one question here:\n\nIs the purpose to remove these packages to compressed the docker disk image?\nCould just removing these help this purpose? In kvm, after removing some unuseful files, we need on more step `qemu-img convert -c xxx.qcow2 xxx.qcow2` to trim the disk image size","commit_id":"3e13586eed1cfd1b4f9d041a330f5664f147b6eb"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"a80bc320a9d819fe6b9b42cca630ff2c6f752bf2","unresolved":false,"context_lines":[{"line_number":36,"context_line":"  python3 \\"},{"line_number":37,"context_line":"  \u0026\u0026 \\"},{"line_number":38,"context_line":"  apt-get -y autoremove \u0026\u0026 \\"},{"line_number":39,"context_line":"  apt-get clean"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"# configure database to live in /home/rally, so that we can bind mount"},{"line_number":42,"context_line":"# it and provide ~/.rally and persist the database from the host"}],"source_content_type":"text/x-dockerfile","patch_set":5,"id":"fa32b979_c221b04e","line":39,"in_reply_to":"fa32b979_ae5b4085","updated":"2015-06-24 11:08:06.000000000","message":"Yes, the resulting image will have layer, where all this deleted files are still present. To free this space, we should run \"install\" and \"remove\" commands under one RUN directive (as done in current version)","commit_id":"3e13586eed1cfd1b4f9d041a330f5664f147b6eb"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"aaf22bc6e87bd55714d01e3fbdce50e317feda17","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"# TODO(stpierre): Find a way to use `rally` as the"},{"line_number":49,"context_line":"# entrypoint. Currently this is complicated by the need to run"},{"line_number":50,"context_line":"# rally-manage to create the database."}],"source_content_type":"text/x-dockerfile","patch_set":8,"id":"1a4dcd0f_7daf78e3","line":50,"updated":"2015-08-11 00:41:21.000000000","message":"could this work?\n\nRUN rally-manage db recreate","commit_id":"b27166b27cceb5e6f8086006fc080bb79704197f"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"a058be6406513077f691c615f768f2044493e343","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"# TODO(stpierre): Find a way to use `rally` as the"},{"line_number":49,"context_line":"# entrypoint. Currently this is complicated by the need to run"},{"line_number":50,"context_line":"# rally-manage to create the database."}],"source_content_type":"text/x-dockerfile","patch_set":8,"id":"1a4dcd0f_3d9fb060","line":50,"in_reply_to":"1a4dcd0f_7daf78e3","updated":"2015-08-11 00:54:08.000000000","message":"We need to be able to run rally-manage db recreate outside of docker container. If we set up entry point to rally it won\u0027t work...","commit_id":"b27166b27cceb5e6f8086006fc080bb79704197f"}],"doc/source/install.rst":[{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"e9143218088578fff6f31323db140d0e6fbaca03","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":".. code-block:: bash"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"   echo \u0027alias dock_rally\u003d\"docker run -it -v /var/lib/rally_container:/var/lib/rally/database rallyforge/rally\"\u0027 \u003e\u003e ~/.bashrc"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"After executing ``dock_rally``, or ``docker run ...``, you will have"},{"line_number":173,"context_line":"bash running inside the container with Rally installed. You may do"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_d5498861","line":170,"updated":"2015-06-17 10:32:11.000000000","message":"According to Docekrfile:44 Rally will configured to store database in /home/rally/.rally.sqlite\n\nPlease keep it in /home/rally because our users are already using such settings, and this will persist some other files in ~/ like .bashrc, .bash_history and share with host depolyments/scenarios/results/reports\n\n e.g.\n\n cp my_deploy.yaml my_task.yaml /var/lib/rally_container\n dock_rally\n rally deployment create --file my_deployment.yaml\n rally task start --task my_task.yaml\n rally task report --out out.html\n ^D\n\nand we have out.html in /var/lib/rally_container","commit_id":"55d7eaa5fb5805d82b18555375eeaff91f23ba11"},{"author":{"_account_id":11748,"name":"Chris St. Pierre","email":"cstpierr@cisco.com","username":"stpierre"},"change_message_id":"9df3136dba9baaf8e51148483e4d556ad9a1be4c","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":".. code-block:: bash"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"   echo \u0027alias dock_rally\u003d\"docker run -it -v /var/lib/rally_container:/var/lib/rally/database rallyforge/rally\"\u0027 \u003e\u003e ~/.bashrc"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"After executing ``dock_rally``, or ``docker run ...``, you will have"},{"line_number":173,"context_line":"bash running inside the container with Rally installed. You may do"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_ffa8118e","line":170,"in_reply_to":"fa32b979_d5498861","updated":"2015-06-17 18:18:17.000000000","message":"Yeah, I played with putting the database in /var/lib/rally/database, but obviously decided against it and missed a few places. Thanks.\n\nDone.","commit_id":"55d7eaa5fb5805d82b18555375eeaff91f23ba11"}]}
