1 # Arvados compute node Docker container.
4 MAINTAINER Ward Vandewege <ward@curoverse.com>
7 RUN apt-get install -qqy supervisor python-pip python-pyvcf python-gflags python-google-api-python-client python-virtualenv libattr1-dev libfuse-dev python-dev python-llfuse fuse crunchstat python-arvados-fuse cron dnsmasq
9 ADD fuse.conf /etc/fuse.conf
10 RUN chmod 644 /etc/fuse.conf
12 RUN /usr/local/rvm/bin/rvm-exec default gem install arvados-cli arvados
14 # Install Docker from the Arvados package repository (cf. arvados/base)
15 RUN apt-get install -qqy iptables ca-certificates lxc apt-transport-https docker.io
17 RUN addgroup --gid 4005 crunch && mkdir /home/crunch && useradd --uid 4005 --gid 4005 crunch && usermod crunch -G fuse,docker && chown crunch:crunch /home/crunch
20 ADD supervisor.conf /etc/supervisor/conf.d/arvados.conf
21 ADD generated/setup.sh /usr/local/bin/setup.sh
22 ADD wrapdocker /usr/local/bin/wrapdocker.sh
24 VOLUME /var/lib/docker
25 # Start the supervisor.
26 CMD ["/usr/bin/supervisord", "-n"]