|
1 | | -FROM centos:centos7 |
| 1 | +FROM rockylinux/rockylinux:8.4 as download_ssp |
2 | 2 |
|
3 | | -LABEL maintainer="Unicon, Inc." |
| 3 | +ARG SIMPLE_SAML_PHP_VERSION=1.19.3 |
| 4 | +ARG SIMPLE_SAML_PHP_HASH=02b49c929e78032bef28cd4d4a7104b58a8dcaaed7f1f52f9c37313ee15ba293 |
4 | 5 |
|
5 | | -RUN yum -y install epel-release \ |
6 | | - && yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm \ |
7 | | - && yum -y update \ |
8 | | - && yum-config-manager --enable remi-php72 \ |
9 | | - && yum -y install httpd mod_ssl wget \ |
10 | | - && yum -y install php php-ldap php-mbstring php-memcache php-mcrypt php-pdo php-pear php-xml \ |
11 | | - && yum -y clean all |
12 | | - |
13 | | -RUN ssp_version=1.18.4; \ |
14 | | - ssp_hash=7530dec7290ba5efaac08cb17042819a96dc530e217c3810cdde9be76d57b2ca; \ |
15 | | - wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v$ssp_version/simplesamlphp-$ssp_version.tar.gz \ |
| 6 | +RUN dnf install -y wget \ |
| 7 | + && ssp_version=$SIMPLE_SAML_PHP_VERSION; \ |
| 8 | + ssp_hash=$SIMPLE_SAML_PHP_HASH; \ |
| 9 | + wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v$ssp_version/simplesamlphp-$ssp_version.tar.gz \ |
16 | 10 | && echo "$ssp_hash simplesamlphp-$ssp_version.tar.gz" | sha256sum -c - \ |
17 | | - && cd /var \ |
18 | | - && tar xzf /simplesamlphp-$ssp_version.tar.gz \ |
19 | | - && mv simplesamlphp-$ssp_version simplesamlphp \ |
20 | | - && rm /simplesamlphp-$ssp_version.tar.gz |
| 11 | + && cd /var \ |
| 12 | + && tar xzf /simplesamlphp-$ssp_version.tar.gz \ |
| 13 | + && mv simplesamlphp-$ssp_version simplesamlphp |
| 14 | + |
| 15 | +FROM rockylinux/rockylinux:8.4 |
| 16 | + |
| 17 | +LABEL maintainer="Unicon, Inc." |
| 18 | + |
| 19 | +ARG PHP_VERSION=7.4.6-4.module+el8.4.0+415+e936cba3 |
| 20 | +ARG HTTPD_VERSION=2.4.37-39.module+el8.4.0+655+f2bfd6ee.1 |
| 21 | + |
| 22 | +COPY --from=download_ssp /var/simplesamlphp /var/simplesamlphp |
| 23 | + |
| 24 | +RUN dnf module enable -y php:7.4 \ |
| 25 | + && dnf install -y httpd-$HTTPD_VERSION php-$PHP_VERSION \ |
| 26 | + && dnf clean all \ |
| 27 | + && rm -rf /var/cache/yum |
21 | 28 |
|
22 | 29 | RUN echo $'\nSetEnv SIMPLESAMLPHP_CONFIG_DIR /var/simplesamlphp/config\nAlias /simplesaml /var/simplesamlphp/www\n \ |
23 | 30 | <Directory /var/simplesamlphp/www>\n \ |
|
0 commit comments