diff options
author | Remi Collet <remi@remirepo.net> | 2022-11-25 10:36:31 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-11-25 10:36:31 +0100 |
commit | 6ff8b77f8451c4f59689bbf750981653fa1013d9 (patch) | |
tree | 1d1055bc1928f10c7735c2c0deb534ffb94c31ee | |
parent | 8d8c3bdf2516b745cfda7a599673ca896641352c (diff) |
add some centos7 Dockerfile to test ldap issue
-rw-r--r-- | c7-php74.dockerfile | 27 | ||||
-rw-r--r-- | c7-php82.dockerfile | 27 |
2 files changed, 54 insertions, 0 deletions
diff --git a/c7-php74.dockerfile b/c7-php74.dockerfile new file mode 100644 index 0000000..f72e213 --- /dev/null +++ b/c7-php74.dockerfile @@ -0,0 +1,27 @@ +FROM centos:7 + +RUN yum update -y + +# Import archive signing keys and update packages +RUN rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \ + rpm --import https://rpms.remirepo.net/RPM-GPG-KEY-remi && \ + yum install -y yum-utils && \ + yum update -y + +RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ + https://rpms.remirepo.net/enterprise/remi-release-7.rpm && \ + yum-config-manager --enable remi-php74 && \ + yum install -y --setopt=tsflags=nodocs --noplugins \ + php-cli php-ldap && \ + yum clean all + + +COPY ldap.php /tmp/ldap.php +# RUN LD_PRELOAD=/usr/lib64/libldap_r-2.4.so.2.10.7 php /tmp/ldap.php +# RUN mv /etc/php.d/20-ldap.ini /etc/php.d/19-ldap.ini +RUN php /tmp/ldap.php + +RUN php --modules && php --version && rpm -q php-cli + +ENTRYPOINT ["php"] +CMD ["-a"] diff --git a/c7-php82.dockerfile b/c7-php82.dockerfile new file mode 100644 index 0000000..0f662d7 --- /dev/null +++ b/c7-php82.dockerfile @@ -0,0 +1,27 @@ +FROM centos:7 + +RUN yum update -y + +# Import archive signing keys and update packages +RUN rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \ + rpm --import https://rpms.remirepo.net/RPM-GPG-KEY-remi && \ + yum install -y yum-utils && \ + yum update -y + +RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ + https://rpms.remirepo.net/enterprise/remi-release-7.rpm && \ + yum-config-manager --enable remi-php82-test && \ + yum install -y --setopt=tsflags=nodocs --noplugins \ + php-cli php-ldap && \ + yum clean all + + +COPY ldap.php /tmp/ldap.php +# RUN LD_PRELOAD=/usr/lib64/libldap_r-2.4.so.2.10.7 php /tmp/ldap.php +# RUN mv /etc/php.d/20-ldap.ini /etc/php.d/19-ldap.ini +RUN php /tmp/ldap.php + +RUN php --modules && php --version && rpm -q php-cli + +ENTRYPOINT ["php"] +CMD ["-a"] |