Subir archivos a 'mrbs/ansible'

This commit is contained in:
David Lopez 2023-07-19 06:25:19 +00:00
parent b3ec736f62
commit b8c90e0f7b
1 changed files with 32 additions and 0 deletions

32
mrbs/ansible/Dockerfile Normal file
View File

@ -0,0 +1,32 @@
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