blob: 446bf844fd1c2ec3239df2317054beee24658f01 [file] [log] [blame]
David K. Bainbridge9c24cbf2015-12-03 11:49:01 -08001FROM xosproject/xos
Tony Mack3bcbee82015-11-16 20:41:49 +00002
Tony Mack3bcbee82015-11-16 20:41:49 +00003RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
4 openssh-client \
5 python-crypto \
6 python-jinja2 \
Zack Williams6f54b162016-04-19 15:53:54 -07007 python-netaddr \
Tony Mack3bcbee82015-11-16 20:41:49 +00008 python-paramiko \
9 python-yaml \
10 python-httplib2 \
Andy Bavierf34b99a2016-01-07 16:38:26 -050011 rsync \
Zack Williams6f54b162016-04-19 15:53:54 -070012 software-properties-common \
Tony Mack3bcbee82015-11-16 20:41:49 +000013 supervisor
14
Zack Williamsac63ea12016-04-22 11:46:34 -070015# required for ansible 2.0 OpenStack os_* modules
16RUN pip install --upgrade pbr
17RUN pip install --upgrade six
18RUN pip install shade
19
Zack Williams6f54b162016-04-19 15:53:54 -070020# Install ansible from PPA
21RUN add-apt-repository ppa:ansible/ansible
22RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
23 ansible
Tony Mack80ed9e82015-12-16 17:40:00 +000024
Zack Williams6f54b162016-04-19 15:53:54 -070025# For Synchronizer
Tony Mack3bcbee82015-11-16 20:41:49 +000026RUN mkdir -p /usr/local/share /bin /etc/ansible
27
Andy Bavier44120082016-01-06 16:40:00 -050028COPY conf/ansible-hosts /etc/ansible/hosts
Tony Mack3bcbee82015-11-16 20:41:49 +000029
Tony Mack3bcbee82015-11-16 20:41:49 +000030# Supervisor
Andy Bavier44120082016-01-06 16:40:00 -050031COPY conf/synchronizer.conf /etc/supervisor/conf.d/
Tony Mack3bcbee82015-11-16 20:41:49 +000032
Tony Mack80ed9e82015-12-16 17:40:00 +000033CMD update-ca-certificates && /usr/bin/supervisord -c /etc/supervisor/conf.d/synchronizer.conf
Zack Williams6f54b162016-04-19 15:53:54 -070034