-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new image for user_saml_shibboleth-php8.0
Signed-off-by: Arthur Schiwon <[email protected]> fix ipv6 entries in hosts file Signed-off-by: Arthur Schiwon <[email protected]> wait for jetty Signed-off-by: Arthur Schiwon <[email protected]> wait also for IdP Signed-off-by: Arthur Schiwon <[email protected]> exit early when LDAP is not ready Signed-off-by: Arthur Schiwon <[email protected]> wait up to 5min for each services, also on 7.3 image Signed-off-by: Arthur Schiwon <[email protected]> shut down slapd during build and clean locks Signed-off-by: Arthur Schiwon <[email protected]> fix proper startup and shutdown of 389ds on build Signed-off-by: Arthur Schiwon <[email protected]> fix deleted lock dir Turned out not to be a good idea for this structure was expected. The underlying issue was in an unclean slapd server shutdown, fixed in a previous commit. Signed-off-by: Arthur Schiwon <[email protected]> provide specific log output when ldap fails Signed-off-by: Arthur Schiwon <[email protected]> do not use start.sh as CMD Signed-off-by: Arthur Schiwon <[email protected]> Update user_saml_shibboleth-php7.3/Dockerfile Co-authored-by: Louis <[email protected]> Signed-off-by: Vincent Petry <[email protected]> Update user_saml_shibboleth-php7.3/start.sh Co-authored-by: Louis <[email protected]> Signed-off-by: Vincent Petry <[email protected]> Use TERM signal to terminate slapd Signed-off-by: Louis Chemineau <[email protected]>
- Loading branch information
Showing
57 changed files
with
5,845 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
# wait for Jetty | ||
for i in {1..300} | ||
do | ||
nc -zw 5 localhost 4443 | ||
IS_JETTY=$? | ||
if [ ${IS_JETTY} -eq 0 ]; then | ||
break | ||
fi | ||
sleep 1 | ||
done | ||
|
||
# wait for IdP becoming ready | ||
for i in {1..300} | ||
do | ||
if curl -f --silent -I -k https://localhost:4443/idp/ > /dev/null ; then | ||
exit 0 | ||
break | ||
fi | ||
sleep 1 | ||
done | ||
|
||
echo "Jetty or IdP not ready" | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
FROM unicon/shibboleth-idp:3.4.3 | ||
|
||
# Add Shibboleth config stuff | ||
ADD shibboleth/ /opt/shibboleth-idp/ | ||
|
||
# Install the LDAP server | ||
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
RUN yum install -y --enablerepo=centosplus 389-ds | ||
|
||
RUN rm -fr /var/lock /usr/lib/systemd/system | ||
ADD ldap/ds-setup.inf /ds-setup.inf | ||
ADD ldap/users.ldif /users.ldif | ||
ADD ldap/nextcloud.ldif /nextcloud.ldif | ||
RUN sed -i 's/checkHostname {/checkHostname {\nreturn();/g' /usr/lib64/dirsrv/perl/DSUtil.pm | ||
RUN sed -i 's/updateSelinuxPolicy($inf);//g' /usr/lib64/dirsrv/perl/* | ||
ADD ldap/DSCreate.pm /usr/lib64/dirsrv/perl/DSCreate.pm | ||
ADD ldap/AdminServer.pm /usr/lib64/dirsrv/perl/AdminServer.pm | ||
RUN setup-ds-admin.pl --silent --file /ds-setup.inf | ||
RUN /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-dir \ | ||
# ensure to have enough time for startup | ||
&& sleep 40 \ | ||
&& ldapmodify -H ldap:/// -f nextcloud.ldif -x -D "cn=Directory Manager" -w password \ | ||
&& ldapadd -H ldap:/// -f users.ldif -x -D "cn=Directory Manager" -w password \ | ||
&& sleep 10 \ | ||
&& kill -TERM "$(ps -C ns-slapd -o pid h)" \ | ||
# ensure to have enough time for shut-down | ||
&& sleep 20 \ | ||
# debug output | ||
&& ps -aux | ||
RUN rm /*.ldif | ||
RUN echo '' > /var/log/dirsrv/slapd-dir/errors | ||
|
||
# Install Apache and PHP 8.0 for Nextcloud | ||
RUN yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm | ||
RUN yum-config-manager --disable 'remi-php*' | ||
RUN yum-config-manager --enable remi-php80 | ||
RUN yum -y install centos-release-scl | ||
RUN yum -y install php php-{fpm,gd,mbstring,pecl-mcrypt,pdo,cli,zip,curl,xml,pear,bcmath,json} httpd git sudo | ||
RUN sed -i "s/128M/512M/" /etc/php.ini | ||
RUN mkdir /run/php-fpm | ||
RUN chmod -R 777 /opt/ | ||
RUN rm -f /etc/httpd/conf.d/nss.conf | ||
ADD apache/httpd.conf /etc/httpd/conf/httpd.conf | ||
|
||
RUN yum -y install nc | ||
|
||
# Add the startup file | ||
ADD start.sh /start.sh | ||
RUN chmod a+x /start.sh | ||
|
||
ADD wait-for-services.sh /wait-for-services.sh | ||
RUN chmod a+x /wait-for-services.sh | ||
|
||
CMD ["/bin/bash"] |
Oops, something went wrong.