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
8 ADD fuse.conf /etc/fuse.conf
10 RUN /usr/local/rvm/bin/rvm-exec default gem install arvados-cli arvados
12 # Install Docker from the Docker Inc. repository
13 RUN apt-get update -qq && apt-get install -qqy iptables ca-certificates lxc apt-transport-https
14 RUN echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
15 RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
16 RUN apt-get update -qq && apt-get install -qqy lxc-docker
18 RUN addgroup --gid 4005 crunch && mkdir /home/crunch && useradd --uid 4005 --gid 4005 crunch && usermod crunch -G fuse,docker && chown crunch:crunch /home/crunch
21 ADD supervisor.conf /etc/supervisor/conf.d/arvados.conf
22 ADD ssh.sh /usr/local/bin/ssh.sh
23 ADD generated/setup.sh /usr/local/bin/setup.sh
24 ADD wrapdocker /usr/local/bin/wrapdocker.sh
26 VOLUME /var/lib/docker
27 # Start the supervisor.
28 CMD ["/usr/bin/supervisord", "-n"]