Dockerfile and run.sh for solar-celery image
This commit is contained in:
parent
65a63cc907
commit
db86b75d35
25
Dockerfile
Normal file
25
Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user