-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
71 lines (65 loc) · 1.87 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
71
FROM ubuntu:16.04
LABEL maintainer="[email protected]"
ENV LANGUAGE=en_GB.UTF-8
ENV LC_ALL=en_GB.UTF-8
ENV LANG=en_GB.UTF-8
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update &&\
apt-get -y dist-upgrade &&\
apt-get clean &&\
mkdir -p /opt/tools/bin
RUN \
apt-get -y install locales\
software-properties-common\
python-software-properties\
openssl\
curl \
git\
xmlsec1\
ca-certificates\
wget\
unzip\
less\
net-tools\
vim\
openjdk-9-jre-headless\
supervisor\
python-pika\
language-pack-en &&\
apt-get clean
RUN \
add-apt-repository -y -u ppa:ondrej/php &&\
apt-get -y install php7.1\
php7.1-bcmath\
php7.1-xml\
php7.1-mbstring\
php7.1-gmp\
php7.1-curl\
php7.1-mysql\
php7.1-mcrypt &&\
apt-get -y install php7.1-cli &&\
apt-get -y install php-redis &&\
apt-get -y install php-memcached &&\
apt-get -y install php7.1-gd &&\
apt-get -y install php7.1-imagick &&\
cd /root &&\
curl -O http://pkg.switch.ch/switchaai/SWITCHaai-swdistrib.asc &&\
gpg --with-fingerprint SWITCHaai-swdistrib.asc &&\
apt-key add SWITCHaai-swdistrib.asc &&\
echo 'deb http://pkg.switch.ch/switchaai/ubuntu xenial main' | tee /etc/apt/sources.list.d/SWITCHaai-swdistrib.list > /dev/null &&\
apt-get update &&\
apt-get -y install --install-recommends shibboleth &&\
apt-get -y purge libsaml8 libshibsp6 libxmltooling6v5 shibboleth-schemas &&\
apt-get clean &&\
rm -f /root/SWITCHaai-swdistrib.asc
RUN \
cd /opt/tools &&\
curl -O http://shibboleth.net/downloads/tools/xmlsectool/latest/xmlsectool-2.0.0-bin.zip &&\
unzip xmlsectool-2.0.0-bin.zip
##############################################