diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..e2c17e28 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/run.sh b/run.sh new file mode 100755 index 00000000..ef5ce6a7 --- /dev/null +++ b/run.sh @@ -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