-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
70 lines (62 loc) · 2.49 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# syntax=docker/dockerfile:1.5.1
FROM nginx
ARG TARGETARCH
EXPOSE 80
WORKDIR /var/www/drupal
# Platform specific does require arch specific identifier.
RUN --mount=type=cache,id=drupal-apk-${TARGETARCH},sharing=locked,target=/var/cache/apk \
apk add \
patch \
&& \
mkdir -p \
/var/www/drupal/config \
/var/www/drupal/web/libraries \
&& \
chown -R nginx:nginx /var/www && \
addgroup nginx jwt && \
cleanup.sh
# Installation typically needs more than the default 30 seconds defined in the
# base image. Set to 10 minutes just incase it ran on very old or overallocated
# hardware.
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=600000
ENV \
DRUPAL_DEFAULT_ACCOUNT_NAME=admin \
DRUPAL_DEFAULT_ACCOUNT_PASSWORD=password \
DRUPAL_DEFAULT_BROKER_HOST=activemq \
DRUPAL_DEFAULT_BROKER_PORT=61613 \
DRUPAL_DEFAULT_BROKER_URL=tcp://activemq:61613 \
DRUPAL_DEFAULT_BROKER_WEB_ADMIN_PASSWORD=password \
DRUPAL_DEFAULT_BROKER_WEB_ADMIN_USER=admin \
DRUPAL_DEFAULT_BROKER_WEB_PORT=8161 \
DRUPAL_DEFAULT_CANTALOUPE_URL=https://islandora.traefik.me/cantaloupe/iiif/2 \
DRUPAL_DEFAULT_CONFIGDIR=/var/www/drupal/config/sync \
DRUPAL_DEFAULT_DB_NAME=drupal_default \
DRUPAL_DEFAULT_DB_PASSWORD=password \
DRUPAL_DEFAULT_DB_USER=drupal_default \
DRUPAL_DEFAULT_FCREPO_HOST=islandora.traefik.me \
DRUPAL_DEFAULT_FCREPO_PORT=8081 \
DRUPAL_DEFAULT_FITS_HOST=fits \
DRUPAL_DEFAULT_FITS_PORT=8080 \
DRUPAL_DEFAULT_INSTALL_EXISTING_CONFIG=false \
DRUPAL_DEFAULT_INSTALL=true \
DRUPAL_DEFAULT_LOCALE=en \
DRUPAL_DEFAULT_MATOMO_URL_HTTP=http://islandora.traefik.me/matomo/ \
DRUPAL_DEFAULT_MATOMO_URL_HTTPS=https://islandora.traefik.me/matomo/ \
DRUPAL_DEFAULT_NAME=Default \
DRUPAL_DEFAULT_PROFILE=standard \
DRUPAL_DEFAULT_SALT=9PPaL0CxZAIcq0l9wxgDGlCZrp7JdT_x7v9gVzpdbUjMt1PqDz3uD0Zy-i16DuJ1-Htuq5hqeg \
DRUPAL_DEFAULT_SITE_URL=https://islandora.traefik.me \
DRUPAL_DEFAULT_SOLR_CORE=ISLANDORA \
DRUPAL_DEFAULT_SOLR_HOST=solr \
DRUPAL_DEFAULT_SOLR_PORT=8983 \
DRUPAL_DEFAULT_SUBDIR=default \
DRUPAL_DEFAULT_TRIPLESTORE_HOST=blazegraph \
DRUPAL_DEFAULT_TRIPLESTORE_NAMESPACE=islandora \
DRUPAL_DEFAULT_TRIPLESTORE_PORT=8080 \
DRUPAL_ENABLE_HTTPS=true \
DRUPAL_REVERSE_PROXY_IPS= \
DRUPAL_SITES=DEFAULT
COPY --link rootfs /
RUN chown -R nginx:nginx /var/www /usr/share/drush