-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (26 loc) · 1.31 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
FROM ubuntu:xenial
MAINTAINER Balázs Soltész <[email protected]>
# Set debconf to run non-interactively
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& apt-get update \
&& apt-get -y --no-install-recommends install software-properties-common \
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/apache2 \
&& apt-get update \
&& apt-get -y --no-install-recommends install apache2 libapache2-mod-shib2 openssl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY ./logformats.conf /etc/apache2/conf-enabled/
# Generate dummy keys to ensure shibboleth can start,
# then redirect logs to STDOUT.
RUN cd /etc/shibboleth/ && shib-keygen \
&& ln -sf /proc/self/fd/2 /var/log/apache2/access.log \
&& ln -sf /proc/self/fd/2 /var/log/apache2/error.log \
&& ln -sf /proc/self/fd/2 /var/log/shibboleth/shibd.log \
&& ln -sf /proc/self/fd/2 /var/log/shibboleth/shibd_warn.log \
&& ln -sf /proc/self/fd/2 /var/log/shibboleth/signature.log \
&& ln -sf /proc/self/fd/2 /var/log/shibboleth/transaction.log \
&& ln -sf /proc/self/fd/2 /var/log/apache2/other_vhosts_access.log
VOLUME /etc/shibboleth /etc/apache2/sites-enabled /var/www
COPY ./httpd-shibd-foreground /usr/local/bin/
CMD [ "httpd-shibd-foreground" ]
EXPOSE 80 443