Rename clinicalfuture -> curoverse everywhere.
[arvados.git] / docker / workbench / Dockerfile
1 # Arvados Workbench Docker container.
2
3 FROM arvados/passenger
4 MAINTAINER Ward Vandewege <ward@curoverse.com>
5
6 # Update Arvados source
7 RUN /bin/mkdir -p /usr/src/arvados/apps
8 ADD generated/workbench.tar.gz /usr/src/arvados/apps/
9
10 RUN touch /usr/src/arvados/apps/workbench/log/production.log && \
11     chmod 666 /usr/src/arvados/apps/workbench/log/production.log && \
12     touch /usr/src/arvados/apps/workbench/db/production.sqlite3 && \
13     bundle install --gemfile=/usr/src/arvados/apps/workbench/Gemfile && \
14     cd /usr/src/arvados/apps/workbench && \
15     rake assets:precompile
16
17 # Configure Apache
18 ADD generated/apache2_vhost /etc/apache2/sites-available/workbench
19 RUN \
20   a2dissite default && \
21   a2ensite workbench && \
22   a2enmod rewrite
23
24 # Set up the production environment
25 ADD generated/secret_token.rb /usr/src/arvados/apps/workbench/config/initializers/secret_token.rb
26 ADD generated/production.rb /usr/src/arvados/apps/workbench/config/environments/production.rb
27 ADD passenger.conf /etc/apache2/conf.d/passenger
28
29 ADD apache2_foreground.sh /etc/apache2/foreground.sh
30
31 # Start Apache
32 CMD ["/etc/apache2/foreground.sh"]
33