From e9af978cac6277f722cd43126e483aaf327c62dc Mon Sep 17 00:00:00 2001 From: Stefan Liebenberg Date: Fri, 26 Apr 2024 10:02:59 +0200 Subject: [PATCH] Adding xmlseclibs source files Adding missing xmlseclibs sources to allow SAML auth, see https://github.com/pierrecdn/phpipam/issues/82 --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index e8bca65..fc4a560 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ ENV PHPMAILER_SOURCE https://github.com/PHPMailer/PHPMailer/ ARG PHPMAILER_VERSION=6.7.1 ENV PHPSAML_SOURCE https://github.com/onelogin/php-saml/ ARG PHPSAML_VERSION=3.4.1 +ENV XMLSECLIBS_SOURCE https://github.com/robrichards/xmlseclibs +ARG XMLSECLIBS_VERSION=3.0.4 ENV WEB_REPO /var/www/html # Install required deb packages @@ -56,6 +58,10 @@ RUN tar -xzf /tmp/v${PHPMAILER_VERSION}.tar.gz -C ${WEB_REPO}/functions/PHPMaile ADD ${PHPSAML_SOURCE}/archive/refs/tags/${PHPSAML_VERSION}.tar.gz /tmp/ RUN tar -xzf /tmp/${PHPSAML_VERSION}.tar.gz -C ${WEB_REPO}/functions/php-saml/ --strip-components=1 +ADD ${XMLSECLIBS_SOURCE}/archive/refs/tags/${XMLSECLIBS_VERSION}.tar.gz /tmp/xmlseclibs-${XMLSECLIBS_VERSION}.tar.gz +RUN tar -xzf /tmp/xmlseclibs-${XMLSECLIBS_VERSION}.tar.gz -C ${WEB_REPO}/functions/xmlseclibs/ --strip-components=1 && \ + chmod +rx -R ${WEB_REPO}/functions/xmlseclibs/ + # Use system environment variables into config.php ENV PHPIPAM_BASE / RUN cp ${WEB_REPO}/config.dist.php ${WEB_REPO}/config.php && \