Skip to content
Permalink
Newer
Older
100644 51 lines (36 sloc) 1.61 KB
Oct 12, 2018
1
FROM centos:centos7
2
3
# Define args and set a default value
4
ARG maintainer=tier
5
ARG imagename=shibboleth_sp
Oct 12, 2018
6
ARG version=3.0.2
7
8
MAINTAINER $maintainer
9
LABEL Vendor="Internet2"
10
LABEL ImageType="Base"
11
LABEL ImageName=$imagename
12
LABEL ImageOS=centos7
13
LABEL Version=$version
14
15
LABEL Build docker build --rm --tag $maintainer/$imagename .
16
Oct 12, 2018
17
ADD ./container_files/bin/httpd-shib-foreground /usr/local/bin/
18
ADD ./container_files/bin/shibboleth_keygen.sh /usr/local/bin/
19
ADD ./container_files/etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/
20
21
22
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime \
23
&& echo "NETWORKING=yes" > /etc/sysconfig/network
24
25
RUN rm -fr /var/cache/yum/* && yum clean all && yum -y install --setopt=tsflags=nodocs epel-release && yum -y update && \
26
yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man vim rsyslog cron httpd mod_ssl dos2unix && \
27
yum clean all
29
RUN curl -o /etc/yum.repos.d/security:shibboleth.repo \
30
http://download.opensuse.org/repositories/security://shibboleth/CentOS_7/security:shibboleth.repo \
Oct 12, 2018
31
&& yum -y install shibboleth.x86_64 \
33
&& rm /etc/httpd/conf.d/autoindex.conf \
34
&& rm /etc/httpd/conf.d/userdir.conf \
35
&& rm /etc/httpd/conf.d/welcome.conf \
Oct 12, 2018
36
&& chmod +x /usr/local/bin/httpd-shib-foreground \
37
&& chmod +x /usr/local/bin/shibboleth_keygen.sh
Feb 22, 2018
38
39
# Export this variable so that shibd can find its CURL library
40
RUN LD_LIBRARY_PATH="/opt/shibboleth/lib64"
41
RUN export LD_LIBRARY_PATH
Oct 12, 2018
43
# fix shibd.logger, other?.logger
44
45
# fix httpd logging to tier format
46
47
48
EXPOSE 80 443
49
CMD ["httpd-shib-foreground"]
Oct 12, 2018
50
51
You can’t perform that action at this time.