Skip to content
Permalink
Newer
Older
100644 46 lines (37 sloc) 1.41 KB
1
FROM tier/centos7base
2
3
# Define args and set a default value
4
ARG maintainer=tier
5
ARG imagename=shibboleth_sp
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
17
RUN curl -o /etc/yum.repos.d/security:shibboleth.repo \
18
http://download.opensuse.org/repositories/security://shibboleth/CentOS_7/security:shibboleth.repo \
19
&& yum -y update \
20
&& yum -y install \
21
httpd \
22
mod_ssl \
23
shibboleth.x86_64 \
24
&& yum clean all \
25
&& rm /etc/httpd/conf.d/autoindex.conf \
26
&& rm /etc/httpd/conf.d/ssl.conf \
27
&& rm /etc/httpd/conf.d/userdir.conf \
28
&& rm /etc/httpd/conf.d/welcome.conf
29
30
# Add starters and installers
31
ADD ./container_files /opt
32
33
COPY httpd-shib-foreground /usr/local/bin/
34
COPY conf/attribute-map.xml /opt/etc/shibboleth/attribute-map.xml
35
COPY conf/inc-md-cert.pem /opt/etc/shibboleth/inc-md-cert.pem
36
COPY conf/shibboleth_keygen.sh /opt/bin/shibboleth_keygen.sh
38
#Added ssl default conf
39
RUN ln -s /opt/etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf
40
41
#Added shib module apache
42
RUN ln -s /opt/etc/httpd/conf.modules.d/00-shib.conf /etc/httpd/conf.modules.d/00-shib.conf
43
RUN ln -s /usr/lib64/shibboleth/mod_shib_24.so /etc/httpd/modules/mod_shib_24.so
44
45
EXPOSE 80 443
46
CMD ["httpd-shib-foreground"]
You can’t perform that action at this time.