Fix Dockerfile for support mysql and postgres

This patch set adds pymysql and psycopg2 to the Dockerfile so that
you can use mysql and postgres in the rally-openstack docker image.

Change-Id: I68814bd7bdc92975b8c60db18e1688326c4e4dad
Closes-Bug: #1793087
This commit is contained in:
Jaesang Lee 2018-09-18 08:02:12 +00:00
parent 7681546970
commit c8272e8591
2 changed files with 7 additions and 3 deletions

View File

@ -41,13 +41,15 @@ Changed
* Deprecate api_info argument of all clients which inherits from OSClient
and deprecate api_version argument of cleanup.manager.cleanup, because
api information has been moved into credentails object.
* `Docker image <https://hub.docker.com/r/xrally/xrally-openstack>`_ now supports
mysql and postgres as db backends.
Removed
~~~~~~~
* Remove deprecated wrappers (rally_openstack.wrappers) and
helpers (scenario utils) for keystone, cinder, glance
services. The new service model should be used instead
* Remove deprecated wrappers (rally_openstack.wrappers) and
helpers (scenario utils) for keystone, cinder, glance
services. The new service model should be used instead
(see ``rally_openstack.services`` module for more details)
while developing custom plugins. All the inner plugins used
the new code for a long time.

View File

@ -13,6 +13,8 @@ COPY etc/motd /etc/motd
WORKDIR /home/rally/source
RUN pip install . --constraint upper-constraints.txt && \
pip install pymysql && \
pip install psycopg2 && \
mkdir /etc/rally && \
echo "[database]" > /etc/rally/rally.conf && \
echo "connection=sqlite:////home/rally/data/rally.db" >> /etc/rally/rally.conf