install script not working, passed to docker file

This commit is contained in:
2023-02-14 19:12:23 -03:00
parent b9ba960c79
commit 024a6de924
2 changed files with 11 additions and 20 deletions

View File

@ -9,7 +9,15 @@ COPY --from=composer /usr/bin/composer /usr/bin/composer
WORKDIR "${LOGVIEW_INSTALLATION_PATH}"
RUN apt-get update \
&& apt-get install -yq --no-install-recommends git \
&& apt-get install -yq --no-install-recommends git zip unzip libzip-dev \
&& rm -r /var/lib/apt/lists/* \
&& git clone http://git.provm.cl/ProVM/logview.git /app \
&& ${LOGVIEW_INSTALLATION_PATH}/install.sh
&& git clone --branch develop http://git.provm.cl/ProVM/logview.git "${LOGVIEW_INSTALLATION_PATH}" \
&& docker-php-ext-install zip \
&& composer -d "${LOGVIEW_INSTALLATION_PATH}/app" install \
&& mkdir "${LOGVIEW_INSTALLATION_PATH}/app/cache" \
&& chmod -R 777 "${LOGVIEW_INSTALLATION_PATH}/app/cache" \
&& sed -ri -e 's!/var/www/html!${APACHE_PUBLIC_ROOT}!g' /etc/apache2/sites-available/*.conf \
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
&& a2enmod rewrite \
&& a2enmod actions \
&& service apache2 restart

View File

@ -1,17 +0,0 @@
#!/bin/bash
apt-get update
apt-get install -yq --no-install-recommends zip unzip libzip-dev
rm -r /var/lib/apt/lists/*
docker-php-ext-install zip
composer -d $LOGVIEW_INSTALLATION_PATH/app install
mkdir $LOGVIEW_INSTALLATION_PATH/app/cache
chmod -R 777 $LOGVIEW_INSTALLATION_PATH/app/cache
sed -ri -e 's!/var/www/html!$APACHE_PUBLIC_ROOT!g' /etc/apache2/sites-available/*.conf
sed -ri -e 's!/var/www/!$APACHE_DOCUMENT_ROOT!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
a2enmod rewrite
a2enmod actions
service apache2 restart