helm: Add the dockerfiles used by the helm charts.
[arvados-k8s.git] / dockerfiles / Dockerfile.rails-runtime
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 FROM phusion/passenger-ruby23
6
7 # put nginx in daemon mode again; the arvados-workbench package restarts
8 # nginx, which would lead to a hang otherwise...
9 RUN sed -i 's/daemon off;/#daemon off;/' /etc/nginx/nginx.conf
10
11 RUN /usr/bin/apt-key adv --keyserver pool.sks-keyservers.net --recv 1078ECD7
12
13 RUN echo "deb http://apt.arvados.org/ xenial-dev main" | tee /etc/apt/sources.list.d/arvados.list
14
15 RUN apt-get update && apt-get install -qqy tzdata
16
17 # preinstall latest arvados rails packages, so that we have (most of) the gems
18 # baked into this docker image. Then remove them so that this image is generic.
19 # The bundles will remain installed.
20 RUN apt-get install -qqy arvados-workbench arvados-sso-server arvados-api-server
21 RUN apt-get remove -qqy arvados-workbench arvados-sso-server arvados-api-server
22
23 # put nginx.conf back into the state it needs to be
24 RUN sed -i 's/#daemon off;/daemon off;/' /etc/nginx/nginx.conf
25
26 RUN apt-get install -qqy postgresql-client
27
28 RUN rm /etc/nginx/sites-enabled/default
29 RUN rm /etc/service/nginx/down
30
31 COPY bootstrap.sh /usr/local/bin/bootstrap.sh