solar/Dockerfile
Łukasz Oleś e3e916f6dd Hardcode ansible version. We are not ready for 2.0
Change-Id: I15cf545cf9220addfc2feec3faf96aa24afdf6cc
2016-01-18 21:38:21 +01:00

21 lines
602 B
Docker

FROM ubuntu:14.04
WORKDIR /
ADD bootstrap/playbooks/celery.yaml /celery.yaml
ADD resources /resources
ADD templates /templates
ADD run.sh /run.sh
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y python python-dev python-distribute python-pip openssh-client rsync libyaml-dev vim libffi-dev libssl-dev git sshpass
RUN pip install "ansible<2.0"
RUN pip install gevent
RUN pip install git+https://github.com/Mirantis/solar.git
RUN pip install git+https://github.com/Mirantis/solar-agent.git
RUN ansible-playbook -v -i "localhost," -c local /celery.yaml --tags install
CMD ["/run.sh"]