Xicheng Chang 35f8bc84b3 Add rally's dockerfile for rally docker build.
The "real" rally docker container will be built from the image'
created by this file. This Dockerfile should be used for creating
and uploading rally image with periodic jobs.

Change-Id: Id0d0c6d911a1893fe15dcb2cbd7df70b1597c2b8
2015-04-08 17:47:17 -07:00

23 lines
831 B
Docker

FROM ubuntu:trusty
RUN apt-get update && \
apt-get -y install git python2.7 bash-completion python-dev libffi-dev \
libxml2-dev libxslt1-dev libssl-dev python-pip libmysqlclient-dev && \
pip install mysql-python
RUN mkdir -p /tmp/rally-src && \
cd /tmp/rally-src && \
git clone https://github.com/stackforge/rally.git
RUN mkdir -p /opt/rally/database && \
mkdir -p /etc/rally && \
mkdir -p /opt/compass/rally/deployment && \
mkdir -p /opt/compass/rally/scenarios && \
chmod 0755 /opt/compass && \
chmod 0755 /opt/compass/rally && \
chmod 0755 /opt/compass/rally/deployment && \
chmod 0755 /opt/compass/rally/scenarios
ADD check_health.py /opt/compass/check_health.py
RUN git clone https://github.com/stackforge/rally.git
RUN cd rally && \
./install_rally.sh