This repository has been archived by the owner on Jun 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
60 lines (51 loc) · 2.76 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
FROM islandora/isle-crayfish-base:latest
## Imagick
# @see: https://launchpad.net/~lyrasis/+archive/ubuntu/imagemagick-jp2
ENV IMAGEMAGICK_REPO=http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu \
IMAGEMAGICK_GPG_KEY=C806C0C35327CC80F2B4A41ED2B749E9FF0FA317
RUN echo deb $IMAGEMAGICK_REPO bionic main >> /etc/apt/sources.list && \
echo deb-src $IMAGEMAGICK_REPO bionic main >> /etc/apt/sources.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $IMAGEMAGICK_GPG_KEY && \
IMAGEMAGICK_PACKS="imagemagick" && \
apt-get update && \
apt-get install --no-install-recommends -y $IMAGEMAGICK_PACKS && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
sed -i "/<policymap>/a \ \ <policy domain=\"coder\" rights=\"read|write\" pattern=\"PDF\" \/>/" /etc/ImageMagick-6/policy.xml
COPY rootfs /
# Composer & Houdini
# @see: Composer https://github.com/composer/getcomposer.org/commits/master (replace hash below with most recent hash)
# @see: Houdini https://github.com/Islandora/Crayfish
ENV PATH=$PATH:$HOME/.composer/vendor/bin \
COMPOSER_ALLOW_SUPERUSER=1 \
COMPOSER_HASH=${COMPOSER_HASH:-b9cc694e39b669376d7a033fb348324b945bce05} \
HOUDINI_BRANCH=dev
RUN curl https://raw.githubusercontent.com/composer/getcomposer.org/$COMPOSER_HASH/web/installer --output composer-setup.php --silent && \
php composer-setup.php --filename=composer --install-dir=/usr/local/bin && \
rm composer-setup.php && \
mkdir -p /opt/crayfish && \
git clone -b $HOUDINI_BRANCH https://github.com/Islandora/Crayfish.git /opt/crayfish && \
composer install -d /opt/crayfish/Houdini && \
chown -Rv www-data:www-data /opt/crayfish && \
mkdir /var/log/islandora && \
chown www-data:www-data /var/log/islandora && \
a2dissite 000-default && \
#echo "ServerName localhost" | tee /etc/apache2/conf-available/servername.conf && \
#a2enconf servername && \
a2enmod rewrite deflate headers expires proxy proxy_http proxy_html proxy_connect remoteip xml2enc cache_disk && \
php /opt/crayfish/Houdini/bin/console cache:clear
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="ISLE 8 Houdini Image" \
org.label-schema.description="ISLE 8 Houdini" \
org.label-schema.url="https://islandora.ca" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/Islandora-Devops/isle-houdini" \
org.label-schema.vendor="Islandora Devops" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
WORKDIR /opt/crayfish/Houdini/