Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@pcaskey
Latest commit 5bf22d8 Dec 16, 2024 History
1 contributor

Users who have contributed to this file

27 lines (19 sloc) 1.11 KB
FROM i2incommon/shibboleth_sp:3.5.0_10212024_rocky9_multiarch
ARG CSPHOSTNAME=localhost
ENV CSPHOSTNAME=$CSPHOSTNAME
ENV SERVERNAME=$CSPHOSTNAME
RUN dnf -y install php php-json wget php-bcmath jq yum-utils
COPY container_files/httpd/midpoint.conf /etc/httpd/conf.d/
COPY container_files/httpd/ssl.conf /etc/httpd/conf.d/
COPY container_files/httpd/localhost.crt /etc/pki/tls/certs/localhost.crt
COPY container_files/httpd/localhost.key /etc/pki/tls/private/localhost.key
COPY container_files/httpd/server-chain.crt /etc/pki/tls/certs/server-chain.crt
RUN chmod 600 /etc/pki/tls/certs/localhost.crt && chmod 600 /etc/pki/tls/private/localhost.key
COPY container_files/shibboleth/ /etc/shibboleth/
COPY container_files/system/startWithPHP.sh /usr/local/bin/
COPY container_files/system/setservername.sh /usr/local/bin/
RUN chmod 755 /usr/local/bin/startWithPHP.sh /usr/local/bin/setservername.sh && /usr/local/bin/setservername.sh
RUN mkdir -p /run/php-fpm/
HEALTHCHECK --interval=1m --timeout=30s \
CMD curl -k -f -u csp:workbench https://127.0.0.1/mppSSO/Shibboleth.sso/Status || exit 1
CMD ["/usr/local/bin/startWithPHP.sh"]