1 # Arvados base image (wheezy+rvm+Arvados source) in Docker
3 # Based on Debian Wheezy
4 FROM arvados/debian:wheezy
5 MAINTAINER Tim Pierce <twp@curoverse.com>
7 ENV DEBIAN_FRONTEND noninteractive
9 # Install prerequisite packages for Arvados
11 # * Arvados source code in /usr/src/arvados, for preseeding gem installation
13 ADD apt.arvados.org.list /etc/apt/sources.list.d/
14 RUN apt-key adv --keyserver pool.sks-keyservers.net --recv 1078ECD7
15 RUN apt-get update -qq
17 RUN apt-get install -qqy openssh-server apt-utils git curl \
18 libcurl3 libcurl3-gnutls libcurl4-openssl-dev locales \
19 postgresql-server-dev-9.1 python-arvados-python-client
21 RUN gpg --keyserver pool.sks-keyservers.net --recv-keys D39DC0E3 && \
22 /bin/mkdir -p /root/.ssh && \
23 /bin/sed -ri 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
24 /usr/sbin/locale-gen && \
25 curl -L https://get.rvm.io | bash -s stable && \
26 /usr/local/rvm/bin/rvm install 2.1 && \
27 /usr/local/rvm/bin/rvm alias create default ruby && \
28 /bin/mkdir -p /usr/src/arvados
30 ADD generated/arvados.tar.gz /usr/src/arvados/
32 # Update gem. This (hopefully) fixes
33 # https://github.com/rubygems/rubygems.org/issues/613.
34 RUN /usr/local/rvm/bin/rvm-exec default gem update --system && \
35 /usr/local/rvm/bin/rvm-exec default gem install bundler && \
36 /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/arvados/apps/workbench/Gemfile && \
37 /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/arvados/services/api/Gemfile && \
38 /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/arvados/doc/Gemfile
40 ADD generated/id_rsa.pub /root/.ssh/authorized_keys
41 RUN chown root:root /root/.ssh/authorized_keys