From 0857e330dc9ca65841ea76e4b3e6b5fce12196c4 Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Mon, 3 Nov 2014 14:58:43 +0200 Subject: [PATCH] Add Dockerfile This file may be used to build rally image for docker. More about docker: https://www.docker.com/ Also added some docs in installation.rst Change-Id: I8580755b6838a3cebc2bd9e27854e68a02ff26b4 --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..bb46d597 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM ubuntu:14.04 +MAINTAINER Sergey Skripnick +COPY . /tmp/rally +RUN apt-get update && \ + apt-get -y install git python2.7 bash-completion python-dev libffi-dev \ + libxml2-dev libxslt1-dev libssl-dev &&\ + cd /tmp/rally &&\ + ./install_rally.sh &&\ + apt-get -y remove libssl-dev libffi-dev python-dev libxml2-dev \ + libxslt1-dev build-essential gcc-4.8 python3 && \ + apt-get -y autoremove &&\ + apt-get clean &&\ + mv doc /usr/share/doc/rally &&\ + rm -fr /tmp/* &&\ + rm -rf /var/lib/apt/lists/* &&\ + update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10 &&\ + useradd -m rally &&\ + ln -s /usr/share/doc/rally /home/rally/rally-docs +USER rally +CMD bash --login +ENV HOME /home/rally +WORKDIR /home/rally