1 # Arvados compute node Docker container.
4 MAINTAINER Ward Vandewege <ward@curoverse.com>
6 RUN apt-get update && apt-get -qqy install 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
8 ADD fuse.conf /etc/fuse.conf
9 RUN chmod 644 /etc/fuse.conf
11 RUN /usr/local/rvm/bin/rvm-exec default gem install arvados-cli arvados
13 # Install Docker from the Arvados package repository (cf. arvados/base)
14 RUN apt-get update -qq && apt-get install -qqy iptables ca-certificates lxc apt-transport-https docker.io
16 RUN addgroup --gid 4005 crunch && mkdir /home/crunch && useradd --uid 4005 --gid 4005 crunch && usermod crunch -G fuse,docker && chown crunch:crunch /home/crunch
19 ADD supervisor.conf /etc/supervisor/conf.d/arvados.conf
20 ADD ssh.sh /usr/local/bin/ssh.sh
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"]