David K. Bainbridge | 9c24cbf | 2015-12-03 11:49:01 -0800 | [diff] [blame] | 1 | FROM xosproject/xos |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 2 | |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 3 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ |
| 4 | openssh-client \ |
| 5 | python-crypto \ |
| 6 | python-jinja2 \ |
Zack Williams | 6f54b16 | 2016-04-19 15:53:54 -0700 | [diff] [blame] | 7 | python-netaddr \ |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 8 | python-paramiko \ |
| 9 | python-yaml \ |
| 10 | python-httplib2 \ |
Andy Bavier | f34b99a | 2016-01-07 16:38:26 -0500 | [diff] [blame] | 11 | rsync \ |
Zack Williams | 6f54b16 | 2016-04-19 15:53:54 -0700 | [diff] [blame] | 12 | software-properties-common \ |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 13 | supervisor |
| 14 | |
Zack Williams | 6f54b16 | 2016-04-19 15:53:54 -0700 | [diff] [blame] | 15 | # Install ansible from PPA |
| 16 | RUN add-apt-repository ppa:ansible/ansible |
| 17 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ |
| 18 | ansible |
Tony Mack | 80ed9e8 | 2015-12-16 17:40:00 +0000 | [diff] [blame] | 19 | |
Zack Williams | 6f54b16 | 2016-04-19 15:53:54 -0700 | [diff] [blame] | 20 | # For Synchronizer |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 21 | RUN mkdir -p /usr/local/share /bin /etc/ansible |
| 22 | |
Andy Bavier | 4412008 | 2016-01-06 16:40:00 -0500 | [diff] [blame] | 23 | COPY conf/ansible-hosts /etc/ansible/hosts |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 24 | |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 25 | # Supervisor |
Andy Bavier | 4412008 | 2016-01-06 16:40:00 -0500 | [diff] [blame] | 26 | COPY conf/synchronizer.conf /etc/supervisor/conf.d/ |
Tony Mack | 3bcbee8 | 2015-11-16 20:41:49 +0000 | [diff] [blame] | 27 | |
Tony Mack | 80ed9e8 | 2015-12-16 17:40:00 +0000 | [diff] [blame] | 28 | CMD update-ca-certificates && /usr/bin/supervisord -c /etc/supervisor/conf.d/synchronizer.conf |
Zack Williams | 6f54b16 | 2016-04-19 15:53:54 -0700 | [diff] [blame] | 29 | |