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 RUN apt-get update && \
14 apt-get -q -y install -q -y openssh-server apt-utils git curl locales postgresql-server-dev-9.1 && \
15 /bin/mkdir -p /root/.ssh && \
16 /bin/sed -ri 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
17 /usr/sbin/locale-gen && \
18 curl -L https://get.rvm.io | bash -s stable --ruby=2.1.0 && \
19 /bin/mkdir -p /usr/src/arvados
21 ADD generated/arvados.tar.gz /usr/src/arvados/
23 # Set up RVM environment. These are just the env variables created by
24 # /usr/local/rvm/scripts/rvm, which can't be run from a non-login shell.
25 # TODO(twp): figure out a less awful solution.
26 ENV GEM_HOME /usr/local/rvm/gems/ruby-2.1.0
27 ENV GEM_PATH /usr/local/rvm/gems/ruby-2.1.0:/usr/local/rvm/gems/ruby-2.1.0@global
28 ENV PATH /usr/local/rvm/gems/ruby-2.1.0/bin:/usr/local/rvm/gems/ruby-2.1.0@global/bin:/usr/local/rvm/rubies/ruby-2.1.0/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
30 # Update gem. This (hopefully) fixes
31 # https://github.com/rubygems/rubygems.org/issues/613.
32 RUN gem update --system && \
33 gem install bundler && \
34 bundle install --gemfile=/usr/src/arvados/apps/workbench/Gemfile && \
35 bundle install --gemfile=/usr/src/arvados/services/api/Gemfile && \
36 bundle install --gemfile=/usr/src/arvados/doc/Gemfile
38 ADD generated/id_rsa.pub /root/.ssh/authorized_keys
39 RUN chown root:root /root/.ssh/authorized_keys