Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2 from docker/shipmod
Shipmod
Jim Van Fleet committed Sep 13, 2016
2 parents 69eeb82 + 5d764df commit 6d06950
Showing 3 changed files with 18 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
@@ -26,11 +26,21 @@ RUN curl -o /etc/yum.repos.d/security:shibboleth.repo \
&& rm /etc/httpd/conf.d/ssl.conf \
&& rm /etc/httpd/conf.d/userdir.conf \
&& rm /etc/httpd/conf.d/welcome.conf

# Add starters and installers
ADD ./container_files /opt

COPY httpd-shib-foreground /usr/local/bin/
COPY conf/attribute-map.xml /opt/etc/shibboleth/attribute-map.xml
COPY conf/inc-md-cert.pem /opt/etc/shibboleth/inc-md-cert.pem
COPY conf/shibboleth_keygen.sh /opt/bin/shibboleth_keygen.sh

#Added ssl default conf
RUN ln -s /opt/etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf

#Added shib module apache
RUN ln -s /opt/etc/httpd/conf.modules.d/00-shib.conf /etc/httpd/conf.modules.d/00-shib.conf
RUN ln -s /usr/lib64/shibboleth/mod_shib_24.so /etc/httpd/modules/mod_shib_24.so

EXPOSE 80 443
CMD ["httpd-shib-foreground"]
CMD ["httpd-shib-foreground"]
6 changes: 6 additions & 0 deletions container_files/etc/httpd/conf.d/ssl.conf
@@ -0,0 +1,6 @@
SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
SSLSessionCache shmcb:/run/httpd/sslcache(512000)
SSLSessionCacheTimeout 300
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
1 change: 1 addition & 0 deletions container_files/etc/httpd/conf.modules.d/00-shib.conf
@@ -0,0 +1 @@
LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_24.so

0 comments on commit 6d06950

Please sign in to comment.