4b1374577a
Current change allows us to use single worker for stateful and stateless tasks, and add more workers in case of scaling issues. Patch covers: - locking with riak and n_val=1 - riak strongly consistent buckets (riak ensemble) - sqlite based lock To enable locking with riak ensemble solar config should be modified: solar_db: riak://10.0.0.3:18087 riak_ensemble: True lock_bucket_type: <<bucket_name>> Change-Id: I5afddb35a944ff75efdf1159ad037536a9d8bbfb
21 lines
596 B
Docker
21 lines
596 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
|
|
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"]
|