Fix permissions issue in docker image

Now rally user in docker image is created with fixed id 65500
Also changed rally.conf to store rally.db in rally home directory

Change-Id: I476baf305b69052f5bd20da66b64616230f1e051
This commit is contained in:
Sergey Skripnick 2015-03-20 16:12:48 +01:00
parent 9a1055a99b
commit 1deea3ebcc

View File

@ -6,6 +6,7 @@ RUN apt-get update && \
libxml2-dev libxslt1-dev libssl-dev &&\ libxml2-dev libxslt1-dev libssl-dev &&\
cd /tmp/rally &&\ cd /tmp/rally &&\
./install_rally.sh &&\ ./install_rally.sh &&\
sed 's|#*connection *=.*|connection = sqlite:////home/rally/.rally.sqlite|' -i /etc/rally/rally.conf &&\
apt-get -y remove libssl-dev libffi-dev python-dev libxml2-dev \ apt-get -y remove libssl-dev libffi-dev python-dev libxml2-dev \
libxslt1-dev build-essential gcc-4.8 python3 && \ libxslt1-dev build-essential gcc-4.8 python3 && \
apt-get -y autoremove &&\ apt-get -y autoremove &&\
@ -14,7 +15,7 @@ RUN apt-get update && \
rm -fr /tmp/* &&\ rm -fr /tmp/* &&\
rm -rf /var/lib/apt/lists/* &&\ rm -rf /var/lib/apt/lists/* &&\
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10 &&\ update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10 &&\
useradd -m rally &&\ useradd -u 65500 -m rally &&\
ln -s /usr/share/doc/rally /home/rally/rally-docs ln -s /usr/share/doc/rally /home/rally/rally-docs
USER rally USER rally
CMD bash --login CMD bash --login