1 # Arvados API server Docker container.
4 MAINTAINER Tim Pierce <twp@clinicalfuture.com>
6 # Install postgres and apache
7 RUN apt-get -q -y install procps postgresql postgresql-server-dev-9.1 apache2
9 # Configure databases and users.
10 ADD config_databases.sh /tmp/
11 RUN /tmp/config_databases.sh
12 RUN rm /tmp/config_databases.sh
14 # Install gems needed for API server
15 RUN bundle install --gemfile=/usr/src/arvados/services/api/Gemfile
17 # Set up the Rails database. This has to be done in a script so that
18 # postgres can run in the background while running rake db:setup.
19 ENV RAILS_ENV production
20 ADD database.yml /usr/src/arvados/services/api/config/database.yml
21 ADD config_rake.sh /tmp/config_rake.sh
22 RUN /tmp/config_rake.sh
24 ADD secret_token.rb /usr/src/arvados/services/api/config/initializers/secret_token.rb
25 ADD omniauth.rb /usr/src/arvados/services/api/config/initializers/omniauth.rb
26 ADD production.rb /usr/src/arvados/services/api/config/environments/production.rb