Dockerfile and run.sh for solar-celery image

This commit is contained in:
Dmitry Shulyak 2015-11-06 15:55:23 +02:00
parent 65a63cc907
commit db86b75d35
2 changed files with 37 additions and 0 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM ubuntu:14.04
WORKDIR /
RUN apt-get update
# Install pip's dependency: setuptools:
RUN apt-get install -y python python-dev python-distribute python-pip
RUN pip install ansible
ADD bootstrap/playbooks/celery.yaml /celery.yaml
ADD solar /solar
ADD solard /solard
ADD resources /resources
ADD templates /templates
ADD run.sh /run.sh
RUN apt-get install -y libffi-dev libssl-dev
RUN pip install riak peewee
RUN pip install -U setuptools>=17.1
RUN cd /solar && python setup.py install
RUN cd /solard && python setup.py install
RUN ansible-playbook -v -i "localhost," -c local /celery.yaml --skip-tags slave
CMD ["/run.sh"]

12
run.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# required for ease of development
pushd /solar
python setup.py develop
popd
pushd /solard
python setup.py develop
popd
tail -f /var/run/celery/*.log