blob: 60cc48b2a32abf0f5b95fda140cc45de3f53beae [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 Williams6f54b162016-04-19 15:53:54 -070015# Install ansible from PPA
16RUN add-apt-repository ppa:ansible/ansible
17RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
18 ansible
Tony Mack80ed9e82015-12-16 17:40:00 +000019
Zack Williams6f54b162016-04-19 15:53:54 -070020# For Synchronizer
Tony Mack3bcbee82015-11-16 20:41:49 +000021RUN mkdir -p /usr/local/share /bin /etc/ansible
22
Andy Bavier44120082016-01-06 16:40:00 -050023COPY conf/ansible-hosts /etc/ansible/hosts
Tony Mack3bcbee82015-11-16 20:41:49 +000024
Tony Mack3bcbee82015-11-16 20:41:49 +000025# Supervisor
Andy Bavier44120082016-01-06 16:40:00 -050026COPY conf/synchronizer.conf /etc/supervisor/conf.d/
Tony Mack3bcbee82015-11-16 20:41:49 +000027
Tony Mack80ed9e82015-12-16 17:40:00 +000028CMD update-ca-certificates && /usr/bin/supervisord -c /etc/supervisor/conf.d/synchronizer.conf
Zack Williams6f54b162016-04-19 15:53:54 -070029