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
12 RUN /usr/local/rvm/bin/rvm-exec default bundle install --gemfile=/usr/src/arvados/apps/workbench/Gemfile && \
13 touch /usr/src/arvados/apps/workbench/log/production.log && \
14 chmod 666 /usr/src/arvados/apps/workbench/log/production.log && \
15 touch /usr/src/arvados/apps/workbench/db/production.sqlite3 && \
16 cd /usr/src/arvados/apps/workbench && \
17 /usr/local/rvm/bin/rvm-exec default bundle exec rake assets:precompile && \
18 chown -R www-data:www-data /usr/src/arvados/apps/workbench
21 ADD generated/apache2_vhost /etc/apache2/sites-available/workbench
23 a2dissite default && \
24 a2ensite workbench && \
27 ADD apache2_foreground.sh /etc/apache2/foreground.sh
30 CMD ["/etc/apache2/foreground.sh"]