framadate : debug

This commit is contained in:
Gitouche 2023-10-26 19:26:26 +02:00
parent 197b9b2288
commit 846505cd9a
3 changed files with 6 additions and 10 deletions

View File

@ -31,6 +31,10 @@ RUN git clone -b $version --depth=1 https://framagit.org/framasoft/framadate/fra
&& sed -i -e 's|isset($admin)|isset($admin) \&\& $admin|g' /var/www/framadate/tpl/part/comments_list.tpl \
&& chown -R 33:33 . \
&& if [ "$ENV" = "dev" ] ; then echo Using PHP production mode ; else echo Using PHP development mode && echo "error_reporting = E_ERROR | E_WARNING | E_PARSE\ndisplay_errors = On" > /usr/local/etc/php/conf.d/php.ini ; fi \
&& rm /etc/apache2/sites-enabled/000-default.conf
&& rm /etc/apache2/sites-enabled/000-default.conf \
&& composer install -o --no-interaction --prefer-dist --no-dev \
&& composer dump-autoload --optimize --no-dev --classmap-authoritative \
&& composer update --no-interaction --no-dev
EXPOSE 80
ENTRYPOINT ["entrypoint"]

View File

@ -60,15 +60,6 @@ if [ ! -f /var/www/framadate/admin/.htpasswd ]; then
fi
fi
if [ "$ENV" = "dev" ]; then
echo Installing PHP development dependencies
composer install --no-interaction --no-progress
else
echo Installing PHP production dependencies
composer install -o --no-interaction --no-progress --prefer-dist --no-dev
composer dump-autoload --optimize --no-dev --classmap-authoritative
fi
# Await MySQL Container being ready
until /usr/bin/mysql --host=$MYSQL_HOST --user=$MYSQL_USER --password=$MYSQL_PASSWORD --silent --execute "SELECT 1;" $MYSQL_DB; do
>&2 echo "MySQL is unavailable - sleeping"

View File

@ -17,3 +17,4 @@ service_name="pod-${pod_name}.service"
get_default_iface_ipv4 GARBAYE_FRAMADATE_SMTP_SERVER
upstream_images="${framadate_image} docker.io/library/composer docker.io/library/mariadb docker.io/library/php docker.io/library/composer"
dbvolume='podman-framadate_framadate-db'