From b8f67f0ba6c51c100296bcb3f6e12461d7bfd86e Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Thu, 14 Feb 2019 10:46:27 -0600 Subject: [PATCH] Create Dockerfile --- Components/SP/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Components/SP/Dockerfile diff --git a/Components/SP/Dockerfile b/Components/SP/Dockerfile new file mode 100644 index 0000000..ba575c3 --- /dev/null +++ b/Components/SP/Dockerfile @@ -0,0 +1,28 @@ +FROM tier/shibboleth_sp:3.0.3_181201 + +LABEL author="tier-packaging@internet2.edu " \ + Vendor="TIER" \ + ImageType="Shibboleth SP" \ + ImageName=$imagename \ + ImageOS=centos7 + +RUN yum -y update; yum -y install php + +ADD container_files/shibboleth2.xml /etc/shibboleth/ +ADD container_files/idp-metadata.xml /etc/shibboleth/ +ADD container_files/ssl.conf /etc/httpd/conf.d/ +ADD container_files/testsp.crt /etc/pki/tls/certs/ +ADD container_files/testsp.key /etc/pki/tls/private/ +ADD container_files/index.php /var/www/html/secure/ +COPY container_files/attribute-map.xml /etc/shibboleth/ +COPY container_files/sp-signing-key.pem /etc/shibboleth/ +COPY container_files/sp-signing-cert.pem /etc/shibboleth/ +COPY container_files/sp-encrypt-key.pem /etc/shibboleth/ +COPY container_files/sp-encrypt-cert.pem /etc/shibboleth/ + +## Uncomment the two lines below to generate new signing and encryption keys/certs for the Shibboleth SP +#RUN /etc/shibboleth/keygen.sh -o /etc/shibboleth/ -f -h my.special.name -y 10 -n sp-signing && \ +# /etc/shibboleth/keygen.sh -o /etc/shibboleth/ -f -h my.special.name -y 10 -n sp-encrypt + + +EXPOSE 8443