Permalink
Aug 24, 2016
Aug 24, 2016
Aug 24, 2016
Aug 25, 2016
Aug 24, 2016
Sep 19, 2016
Sep 15, 2016
Aug 24, 2016
Newer
100644
40 lines (33 sloc)
1.37 KB

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

20
RUN curl -o /etc/yum.repos.d/security:shibboleth.repo \
21
http://download.opensuse.org/repositories/security://shibboleth/CentOS_7/security:shibboleth.repo \

22
&& yum -y update \
23
&& yum -y install \
24
httpd \
25
mod_ssl \
26
shibboleth.x86_64 \

29
&& rm /etc/httpd/conf.d/autoindex.conf \
30
&& rm /etc/httpd/conf.d/ssl.conf \
31
&& rm /etc/httpd/conf.d/userdir.conf \

32
&& rm /etc/httpd/conf.d/welcome.conf \
33
&& chmod +x /opt/bin/httpd-shib-foreground \
34
&& chmod +x /opt/bin/shibboleth_keygen.sh

36
#Script to start service, Added ssl default conf, Added shib module apache
37
RUN ln -s /opt/bin/httpd-shib-foreground /usr/local/bin && ln -s /opt/etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf && ln -s /opt/etc/httpd/conf.modules.d/00-shib.conf /etc/httpd/conf.modules.d/00-shib.conf && ln -s /usr/lib64/shibboleth/mod_shib_24.so /etc/httpd/modules/mod_shib_24.so

39
EXPOSE 80 443