File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
1414COPY config/openconext/parameters.yaml.dist config/openconext/parameters.yaml
1515COPY config/openconext/institutions.yaml.dist config/openconext/institutions.yaml
1616
17+ COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
18+
1719# Add the config files for Apache2
1820RUN rm -rf /etc/apache2/sites-enabled/*
1921COPY ./docker/conf/azuremfa-apache2.conf /etc/apache2/sites-enabled/azuremfa.conf
@@ -23,4 +25,5 @@ EXPOSE 80
2325# Set the default workdir
2426WORKDIR /var/www/html
2527
28+ ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
2629CMD ["apache2-foreground"]
Original file line number Diff line number Diff line change @@ -13,10 +13,13 @@ COPY config/openconext/parameters.yaml.dist config/openconext/parameters.yaml
1313COPY config/openconext/institutions.yaml.dist config/openconext/institutions.yaml
1414COPY config/packages/prod/monolog.yaml.docker config/packages/prod/monolog.yaml
1515
16+ COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
17+
1618# Add the config files for Apache2
1719RUN rm -rf /etc/apache2/sites-enabled/* && rm -rf /var/www/html/output.zip
1820COPY ./docker/conf/azuremfa-apache2.conf /etc/apache2/sites-enabled/azuremfa.conf
1921RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var
2022EXPOSE 80
2123
24+ ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
2225CMD ["apache2-foreground"]
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ PARAM_FILE=" /var/www/html/config/openconext/parameters.yaml"
4+ CACHE_DIR=$( grep -E ' ^ *federation_metadata_cache_location:' " $PARAM_FILE " \
5+ | cut -d ' :' -f2- | tr -d ' [:space:]' )
6+
7+ if [ -z " $CACHE_DIR " ]; then
8+ CACHE_DIR=" /var/www/html/federation-metadata"
9+ fi
10+
11+ echo " Metadata cache‑map: $CACHE_DIR "
12+
13+ if [ -d " $CACHE_DIR " ]; then
14+ echo " Leegmaken van Metadata cache‑map $CACHE_DIR "
15+ rm -rf " $CACHE_DIR " /* 2> /dev/null
16+ fi
17+
18+ exec " $@ "
You can’t perform that action at this time.
0 commit comments