-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 952 Bytes
/
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
FROM centos:7
LABEL maintainer="[email protected]"
# https://wiki.shibboleth.net/confluence/display/SP3/LinuxRH6
ENV LD_LIBRARY_PATH=/opt/shibboleth/lib64:$LD_LIBRARY_PATH
# Shibd log level
ENV LOG_LEVEL=INFO
ENV SHIBD_VERSION=3.2.1-3.1
ENV SHIBD_REMOTE_USER=somerandomname
ENV SHIBD_CONSISTENT_ADDRESS=true
ENV SHIBBOLETH_IDP_METADATA_BACKUPFILE=/var/cache/shibboleth/shibboleth-metadata-idp.xml
ENV SHIBBOLETH_SESSION_LIFETIME=7200
ENV SHIBBOLETH_SESSION_TIMEOUT=3600
ENV SHIBBOLETH_CACHE_TIMEOUT=3600
WORKDIR /etc/shibboleth
COPY shibboleth.repo /etc/yum.repos.d/
RUN yum -y update \
&& yum -y install shibboleth-${SHIBD_VERSION} mysql-connector-odbc gettext mysql nc \
&& yum -y clean all
COPY shibboleth2.xml-template /etc/shibboleth/
COPY console.logger-template /etc/shibboleth/
COPY docker-entrypoint.sh /
COPY attribute-map.xml /etc/shibboleth/
EXPOSE 1600
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["shibd", "-F", "-u", "shibd"]