# Arvados API server Docker container. FROM arvados/base MAINTAINER Tim Pierce # Install postgres and apache RUN apt-get -q -y install procps postgresql postgresql-server-dev-9.1 apache2 # Configure databases and users. ADD config_databases.sh /tmp/ RUN /tmp/config_databases.sh RUN rm /tmp/config_databases.sh # Install gems needed for API server RUN bundle install --gemfile=/usr/src/arvados/services/api/Gemfile # Set up the Rails database. This has to be done in a script so that # postgres can run in the background while running rake db:setup. ENV RAILS_ENV production ADD database.yml /usr/src/arvados/services/api/config/database.yml ADD config_rake.sh /tmp/config_rake.sh RUN /tmp/config_rake.sh ADD secret_token.rb /usr/src/arvados/services/api/config/initializers/secret_token.rb ADD omniauth.rb /usr/src/arvados/services/api/config/initializers/omniauth.rb ADD production.rb /usr/src/arvados/services/api/config/environments/production.rb