-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
25 lines (19 loc) · 1.2 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
FROM jonathancabezas/drupal
ENV CIVICRM_DB_NAME=civicrm \
CIVICRM_DB_USERNAME=civicrm \
CIVICRM_DB_PASSWORD=password
RUN apk add --no-cache memcached php7-memcached wkhtmltopdf xvfb xauth fontconfig ttf-freefont \
&& echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' > /usr/local/bin/wkhtmltopdf \
&& chmod a+rx /usr/local/bin/wkhtmltopdf
RUN mkdir -p /opt/ressources/ \
&& wget -q https://download.civicrm.org/civicrm-${CIVICRM_VERSION}-drupal.tar.gz -O /opt/ressources/civicrm.tgz \
&& wget -q https://download.civicrm.org/civicrm-${CIVICRM_VERSION}-l10n.tar.gz -O /opt/ressources/civicrm-l10n.tgz \
&& wget -q https://github.com/civicrm/org.civicrm.shoreditch/archive/v0.1-alpha31.zip -O /opt/ressources/shoreditch.zip \
&& wget -q https://ftp.drupal.org/files/projects/betterlogin-7.x-1.5.tar.gz -O /opt/ressources/betterlogin.tar.gz \
&& wget -q https://raw.githubusercontent.com/civicrm/civicrm-drupal/7.x-master/drush/civicrm.drush.inc -O /opt/ressources/civicrm.drush.inc
ADD conf/ /
RUN set -x \
&& chmod +x /usr/local/bin/xvfb-run \
&& chmod +x /etc/cont-init.d/* \
&& chmod +x /etc/s6/services/*/* \
&& chmod +x /etc/periodic/*/*