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 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/sed -ri 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
23 /usr/sbin/locale-gen && \
24 curl -L https://get.rvm.io | bash -s stable && \
25 /usr/local/rvm/bin/rvm install 2.1 && \
26 /usr/local/rvm/bin/rvm alias create default ruby-2.1 && \
27 /bin/mkdir -p /usr/src/arvados
29 ADD generated/arvados.tar.gz /usr/src/arvados/
31 # Update gem. This (hopefully) fixes
32 # https://github.com/rubygems/rubygems.org/issues/613.
33 RUN /usr/local/rvm/bin/rvm-exec default gem update --system && \
34 /usr/local/rvm/bin/rvm-exec default gem install bundler && \
35 /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/arvados/apps/workbench/Gemfile && \
36 /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/arvados/services/api/Gemfile && \
37 /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/arvados/doc/Gemfile