Skip to content
Permalink
Newer
Older
100644 44 lines (36 sloc) 1.51 KB
1
FROM tier/centos7base
2
3
# Define args and set a default value
4
ARG maintainer=tier
5
ARG imagename=shibboleth_sp
Feb 27, 2018
6
ARG version=2.6.1
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
# Add starters and installers
18
ADD ./container_files /opt
19
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 \
Dec 20, 2017
27
dos2unix \
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
Feb 22, 2018
35
36
# Export this variable so that shibd can find its CURL library
37
RUN LD_LIBRARY_PATH="/opt/shibboleth/lib64"
38
RUN export LD_LIBRARY_PATH
villadalmine
Sep 15, 2016
40
#Script to start service, Added ssl default conf, Added shib module apache
41
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
42
43
EXPOSE 80 443
44
CMD ["httpd-shib-foreground"]
You can’t perform that action at this time.