Skip to content

Commit 4f1047c

Browse files
authored
Merge pull request #11 from Unicon/jj-wip
switch to rocky linux 8.4
2 parents 273cb60 + 13505e7 commit 4f1047c

3 files changed

Lines changed: 46 additions & 18 deletions

File tree

Dockerfile

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
1-
FROM centos:centos7
1+
FROM rockylinux/rockylinux:8.4 as download_ssp
22

3-
LABEL maintainer="Unicon, Inc."
3+
ARG SIMPLE_SAML_PHP_VERSION=1.19.3
4+
ARG SIMPLE_SAML_PHP_HASH=02b49c929e78032bef28cd4d4a7104b58a8dcaaed7f1f52f9c37313ee15ba293
45

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 \
1610
&& 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
2128

2229
RUN echo $'\nSetEnv SIMPLESAMLPHP_CONFIG_DIR /var/simplesamlphp/config\nAlias /simplesaml /var/simplesamlphp/www\n \
2330
<Directory /var/simplesamlphp/www>\n \

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
[![](https://badge.imagelayers.io/unicon/simplesamlphp:latest.svg)](https://imagelayers.io/?images=unicon/simplesamlphp:latest 'image layer analysis')
22

3+
## Important Note for 1.19.3+
4+
5+
Starting with the 1.19.3 image, only the bare minimum requirements to run are being included in the base image. The
6+
following (and their dependencies) will need to be installed in a custom image if needed:
7+
8+
* wget
9+
* mod_ssl
10+
* php-ldap
11+
* php-memcache
12+
* php-pear
13+
14+
Also not included is the remirepo RPM repository.
15+
316
## Overview
417
This Docker image contains a deployed SimpleSAMLphp IdP/SP based on PHP 7.2 running on Apache HTTP Server 2.4 on the latest CentOS 7 base. This image is a base image and should be used to set the content and configuration with local changes. It is suitable for use as a standalone IdP application or as a base to deploy another PHP application that will be protected by the service provider module.
518

httpd-foreground

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@ set -e
44
# Apache gets grumpy about PID files pre-existing
55
rm -f /usr/local/apache2/logs/httpd.pid /run/httpd/httpd.pid
66

7-
exec httpd -DFOREGROUND
7+
# start fpm
8+
if [ ! -d "/run/php-fpm" ]
9+
then
10+
mkdir /run/php-fpm
11+
fi
12+
13+
php-fpm -D
14+
15+
exec httpd -DFOREGROUND

0 commit comments

Comments
 (0)