From 1a5682d815f8e2d9562f4ba7f81ba5261c71e7de Mon Sep 17 00:00:00 2001 From: davidl Date: Fri, 6 Oct 2023 11:04:36 +0200 Subject: [PATCH] Update V 1.11.4 --- mrbs/Dockerfile | 8 ++--- mrbs/ansible/Dockerfile | 32 -------------------- mrbs/config.inc.php | 65 +++++++++++++++++++++++++++++++++++++++++ mrbs/docker-compose.yml | 35 ++++++++++++++++++++++ 4 files changed, 104 insertions(+), 36 deletions(-) delete mode 100644 mrbs/ansible/Dockerfile create mode 100644 mrbs/config.inc.php create mode 100644 mrbs/docker-compose.yml diff --git a/mrbs/Dockerfile b/mrbs/Dockerfile index d623278..a1a21fa 100644 --- a/mrbs/Dockerfile +++ b/mrbs/Dockerfile @@ -1,6 +1,6 @@ -ARG MRBS_RELEASE=v1.11.1 +FROM php:8.2.11-apache -FROM php:8.2.7-apache +ARG MRBS_RELEASE=v1.11.4 RUN a2enmod rewrite RUN a2enmod ssl @@ -27,6 +27,6 @@ RUN \ RUN docker-php-ext-install mysqli pdo pdo_mysql ldap intl gd -COPY themes/verdnatura /var/www/html/web/Themes +COPY themes/ /var/www/html/Themes - +COPY config.inc.php /var/www/html/ diff --git a/mrbs/ansible/Dockerfile b/mrbs/ansible/Dockerfile deleted file mode 100644 index 8c2971c..0000000 --- a/mrbs/ansible/Dockerfile +++ /dev/null @@ -1,32 +0,0 @@ -ARG MRBS_RELEASE=v1.11.1 - -FROM php:8.2.7-apache - -RUN a2enmod rewrite -RUN a2enmod ssl -RUN apt-get update && apt-get install libldap2-dev libicu-dev zlib1g-dev libpng-dev ldap-utils -y -RUN docker-php-ext-install mysqli -RUN apt-get update && apt-get install -y locales && \ - sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \ - sed -i 's/^# *\(en_GB.UTF-8\)/\1/' /etc/locale.gen && \ - sed -i 's/^# *\(es_ES.UTF-8\)/\1/' /etc/locale.gen && \ - locale-gen - -RUN \ - echo "**** fetch mrbs ****" && \ - rm -rf /var/www/html && \ - mkdir -p /var/www/html && \ - curl -o /tmp/mrbs.tar.gz -L \ - "https://github.com/meeting-room-booking-system/mrbs-code/archive/${MRBS_RELEASE}.tar.gz" && \ - echo "**** extract only folder 'web' ****" && \ - tar -C /var/www/html --strip-components=2 -zxvf /tmp/mrbs.tar.gz $(tar --exclude="*/*" -tf /tmp/mrbs.tar.gz)web && \ - mkdir -p /usr/share/mrbs && \ - tar -C /usr/share/mrbs --wildcards --strip-components=1 -zxvf /tmp/mrbs.tar.gz $(tar --exclude="*/*" -tf /tmp/mrbs.tar.gz)tables.*.sql && \ - echo "**** cleanup ****" && \ - rm -rf /tmp/* - -RUN docker-php-ext-install mysqli pdo pdo_mysql ldap intl gd - -COPY themes/verdnatura /var/www/html/web/Themes - - diff --git a/mrbs/config.inc.php b/mrbs/config.inc.php new file mode 100644 index 0000000..57c6dba --- /dev/null +++ b/mrbs/config.inc.php @@ -0,0 +1,65 @@ +