adds chevereto folder for dev+custom builds

This commit is contained in:
Rodolfo Berrios
2021-06-10 14:39:05 -04:00
parent 87b0a3f3e3
commit 24cc01845d
3 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
bin/clean.sh
chevereto/

View File

@@ -6,9 +6,13 @@ cd /chevereto/download
curl -S -o installer.tar.gz -L "https://github.com/chevereto/installer/archive/${CHEVERETO_INSTALLER_TAG}.tar.gz"
tar -xvzf installer.tar.gz
mv -v installer-"${CHEVERETO_INSTALLER_TAG}"/* /chevereto/installer/
cd /chevereto/installer
php installer.php -a download -s $CHEVERETO_SOFTWARE -t=$CHEVERETO_TAG -l=$CHEVERETO_LICENSE
php installer.php -a extract -s $CHEVERETO_SOFTWARE -f chevereto-pkg-*.zip -p $WORKING_DIR
if [ -f "$WORKING_DIR/composer.js" ]; then
echo "[SKIP] Installer provisioning"
else
cd /chevereto/installer
php installer.php -a download -s $CHEVERETO_SOFTWARE -t=$CHEVERETO_TAG -l=$CHEVERETO_LICENSE
php installer.php -a extract -s $CHEVERETO_SOFTWARE -f chevereto-pkg-*.zip -p $WORKING_DIR
fi
mkdir -p $WORKING_DIR/app
set -eux
{
@@ -45,3 +49,4 @@ set -eux
} >$WORKING_DIR/app/settings.php
chown www-data: $WORKING_DIR -R
cd $WORKING_DIR
ls -la

View File

@@ -84,5 +84,6 @@ VOLUME /var/www/html/importing/no-parse
VOLUME /var/www/html/importing/parse-albums
VOLUME /var/www/html/importing/parse-users
COPY --chown=www-data:www-data chevereto/ /var/www/html
COPY chevereto.sh /chevereto.sh
RUN chmod +x /chevereto.sh && /chevereto.sh