1 # Arvados Workbench Docker container.
4 MAINTAINER Ward Vandewege <ward@curoverse.com>
6 # Update Arvados source
7 RUN /bin/mkdir -p /usr/src/arvados/apps
8 ADD generated/workbench.tar.gz /usr/src/arvados/apps/
9 RUN /bin/cp /usr/src/arvados/apps/workbench/config/environments/production.rb.example /usr/src/arvados/apps/workbench/config/environments/production.rb
10 ADD generated/application.yml /usr/src/arvados/apps/workbench/config/application.yml
11 ADD passenger.conf /etc/apache2/conf.d/passenger
14 RUN bundle install --gemfile=/usr/src/arvados/apps/workbench/Gemfile && \
15 touch /usr/src/arvados/apps/workbench/log/production.log && \
16 chmod 666 /usr/src/arvados/apps/workbench/log/production.log && \
17 touch /usr/src/arvados/apps/workbench/db/production.sqlite3 && \
18 cd /usr/src/arvados/apps/workbench && \
19 rake assets:precompile && \
20 chown -R www-data:www-data /usr/src/arvados/apps/workbench
23 ADD generated/apache2_vhost /etc/apache2/sites-available/workbench
25 a2dissite default && \
26 a2ensite workbench && \
29 ADD apache2_foreground.sh /etc/apache2/foreground.sh
32 CMD ["/etc/apache2/foreground.sh"]