mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add some comments to some files
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
175d9a3112
commit
9c7a35dc23
2 changed files with 17 additions and 1 deletions
|
|
@ -4,14 +4,17 @@ FROM php:8.1.27-fpm-alpine3.19
|
||||||
ENV PHP_MEMORY_LIMIT 512M
|
ENV PHP_MEMORY_LIMIT 512M
|
||||||
ENV PHP_UPLOAD_LIMIT 10G
|
ENV PHP_UPLOAD_LIMIT 10G
|
||||||
ENV PHP_MAX_TIME 3600
|
ENV PHP_MAX_TIME 3600
|
||||||
|
|
||||||
|
# AIO settings start # Do not remove or change this line!
|
||||||
ENV NEXTCLOUD_VERSION 27.1.5
|
ENV NEXTCLOUD_VERSION 27.1.5
|
||||||
ENV AIO_TOKEN 123456
|
ENV AIO_TOKEN 123456
|
||||||
ENV AIO_URL localhost
|
ENV AIO_URL localhost
|
||||||
|
COPY supervisord.conf /supervisord.conf
|
||||||
|
# AIO settings end # Do not remove or change this line!
|
||||||
|
|
||||||
COPY --chmod=775 *.sh /
|
COPY --chmod=775 *.sh /
|
||||||
COPY --chmod=774 upgrade.exclude /upgrade.exclude
|
COPY --chmod=774 upgrade.exclude /upgrade.exclude
|
||||||
COPY config/*.php /
|
COPY config/*.php /
|
||||||
COPY supervisord.conf /supervisord.conf
|
|
||||||
|
|
||||||
VOLUME /mnt/ncdata
|
VOLUME /mnt/ncdata
|
||||||
VOLUME /var/www/html
|
VOLUME /var/www/html
|
||||||
|
|
@ -116,6 +119,7 @@ RUN set -ex; \
|
||||||
chown -R www-data:root /var/www; \
|
chown -R www-data:root /var/www; \
|
||||||
chmod -R g=u /var/www; \
|
chmod -R g=u /var/www; \
|
||||||
\
|
\
|
||||||
|
# Download Nextcloud archive start # Do not remove or change this line!
|
||||||
apk add --no-cache --virtual .fetch-deps \
|
apk add --no-cache --virtual .fetch-deps \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
gnupg \
|
gnupg \
|
||||||
|
|
@ -138,6 +142,7 @@ RUN set -ex; \
|
||||||
mkdir -p /usr/src/nextcloud/config; \
|
mkdir -p /usr/src/nextcloud/config; \
|
||||||
mv /*.php /usr/src/nextcloud/config/; \
|
mv /*.php /usr/src/nextcloud/config/; \
|
||||||
apk del .fetch-deps; \
|
apk del .fetch-deps; \
|
||||||
|
# Download Nextcloud archive end # Do not remove or change this line!
|
||||||
\
|
\
|
||||||
# Template from https://github.com/nextcloud/docker/blob/master/.examples/dockerfiles/full/fpm-alpine/Dockerfile
|
# Template from https://github.com/nextcloud/docker/blob/master/.examples/dockerfiles/full/fpm-alpine/Dockerfile
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
|
|
@ -205,12 +210,14 @@ RUN set -ex; \
|
||||||
sed -i 's/^pm.max_children =.*/pm.max_children = 5000/' /usr/local/etc/php-fpm.d/www.conf; \
|
sed -i 's/^pm.max_children =.*/pm.max_children = 5000/' /usr/local/etc/php-fpm.d/www.conf; \
|
||||||
sed -i 's|access.log = /proc/self/fd/2|access.log = /proc/self/fd/1|' /usr/local/etc/php-fpm.d/docker.conf; \
|
sed -i 's|access.log = /proc/self/fd/2|access.log = /proc/self/fd/1|' /usr/local/etc/php-fpm.d/docker.conf; \
|
||||||
\
|
\
|
||||||
|
# AIO cloning start # Do not remove or change this line!
|
||||||
rm -rf /tmp/nextcloud-aio && \
|
rm -rf /tmp/nextcloud-aio && \
|
||||||
mkdir -p /tmp/nextcloud-aio && \
|
mkdir -p /tmp/nextcloud-aio && \
|
||||||
cd /tmp/nextcloud-aio && \
|
cd /tmp/nextcloud-aio && \
|
||||||
git clone https://github.com/nextcloud-releases/all-in-one.git --depth 1 .; \
|
git clone https://github.com/nextcloud-releases/all-in-one.git --depth 1 .; \
|
||||||
mkdir -p /usr/src/nextcloud/apps/nextcloud-aio; \
|
mkdir -p /usr/src/nextcloud/apps/nextcloud-aio; \
|
||||||
cp -r ./app/* /usr/src/nextcloud/apps/nextcloud-aio/; \
|
cp -r ./app/* /usr/src/nextcloud/apps/nextcloud-aio/; \
|
||||||
|
# AIO cloning end # Do not remove or change this line!
|
||||||
\
|
\
|
||||||
chown www-data:root -R /usr/src && \
|
chown www-data:root -R /usr/src && \
|
||||||
chown www-data:root -R /usr/local/etc/php/conf.d && \
|
chown www-data:root -R /usr/local/etc/php/conf.d && \
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,8 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ] && [ "$((IMAGE_MAJOR - INSTALLED_MAJOR))" -gt 1 ]; then
|
if [ "$installed_version" != "0.0.0.0" ] && [ "$((IMAGE_MAJOR - INSTALLED_MAJOR))" -gt 1 ]; then
|
||||||
|
# Do not skip major versions placeholder # Do not remove or change this line!
|
||||||
|
# Do not skip major versions start # Do not remove or change this line!
|
||||||
set -ex
|
set -ex
|
||||||
NEXT_MAJOR="$((INSTALLED_MAJOR + 1))"
|
NEXT_MAJOR="$((INSTALLED_MAJOR + 1))"
|
||||||
curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/latest-${NEXT_MAJOR}.tar.bz2"
|
curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/latest-${NEXT_MAJOR}.tar.bz2"
|
||||||
|
|
@ -133,6 +135,7 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then
|
||||||
image_version="$(php -r 'require "/usr/src/nextcloud/version.php"; echo implode(".", $OC_Version);')"
|
image_version="$(php -r 'require "/usr/src/nextcloud/version.php"; echo implode(".", $OC_Version);')"
|
||||||
IMAGE_MAJOR="${image_version%%.*}"
|
IMAGE_MAJOR="${image_version%%.*}"
|
||||||
set +ex
|
set +ex
|
||||||
|
# Do not skip major versions end # Do not remove or change this line!
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
|
|
@ -255,6 +258,7 @@ DATADIR_PERMISSION_CONF
|
||||||
# unset admin password
|
# unset admin password
|
||||||
unset ADMIN_PASSWORD
|
unset ADMIN_PASSWORD
|
||||||
|
|
||||||
|
# AIO update to latest start # Do not remove or change this line!
|
||||||
if [ "$INSTALL_LATEST_MAJOR" = yes ]; then
|
if [ "$INSTALL_LATEST_MAJOR" = yes ]; then
|
||||||
php /var/www/html/occ config:system:set updatedirectory --value="/nc-updater"
|
php /var/www/html/occ config:system:set updatedirectory --value="/nc-updater"
|
||||||
INSTALLED_AT="$(php /var/www/html/occ config:app:get core installedat)"
|
INSTALLED_AT="$(php /var/www/html/occ config:app:get core installedat)"
|
||||||
|
|
@ -292,6 +296,7 @@ DATADIR_PERMISSION_CONF
|
||||||
php /var/www/html/occ db:add-missing-primary-keys
|
php /var/www/html/occ db:add-missing-primary-keys
|
||||||
yes | php /var/www/html/occ db:convert-filecache-bigint
|
yes | php /var/www/html/occ db:convert-filecache-bigint
|
||||||
fi
|
fi
|
||||||
|
# AIO update to latest end # Do not remove or change this line!
|
||||||
|
|
||||||
# Apply log settings
|
# Apply log settings
|
||||||
echo "Applying default settings..."
|
echo "Applying default settings..."
|
||||||
|
|
@ -463,11 +468,13 @@ if [ -f "$NEXTCLOUD_DATA_DIR/fingerprint.update" ]; then
|
||||||
rm "$NEXTCLOUD_DATA_DIR/fingerprint.update"
|
rm "$NEXTCLOUD_DATA_DIR/fingerprint.update"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# AIO one-click settings start # Do not remove or change this line!
|
||||||
# Apply one-click-instance settings
|
# Apply one-click-instance settings
|
||||||
echo "Applying one-click-instance settings..."
|
echo "Applying one-click-instance settings..."
|
||||||
php /var/www/html/occ config:system:set one-click-instance --value=true --type=bool
|
php /var/www/html/occ config:system:set one-click-instance --value=true --type=bool
|
||||||
php /var/www/html/occ config:system:set one-click-instance.user-limit --value=100 --type=int
|
php /var/www/html/occ config:system:set one-click-instance.user-limit --value=100 --type=int
|
||||||
php /var/www/html/occ config:system:set one-click-instance.link --value="https://nextcloud.com/all-in-one/"
|
php /var/www/html/occ config:system:set one-click-instance.link --value="https://nextcloud.com/all-in-one/"
|
||||||
|
# AIO one-click settings end # Do not remove or change this line!
|
||||||
php /var/www/html/occ app:enable support
|
php /var/www/html/occ app:enable support
|
||||||
if [ -n "$SUBSCRIPTION_KEY" ] && [ -z "$(php /var/www/html/occ config:app:get support potential_subscription_key)" ]; then
|
if [ -n "$SUBSCRIPTION_KEY" ] && [ -z "$(php /var/www/html/occ config:app:get support potential_subscription_key)" ]; then
|
||||||
php /var/www/html/occ config:app:set support potential_subscription_key --value="$SUBSCRIPTION_KEY"
|
php /var/www/html/occ config:app:set support potential_subscription_key --value="$SUBSCRIPTION_KEY"
|
||||||
|
|
@ -503,6 +510,7 @@ else
|
||||||
php /var/www/html/occ config:system:set files_external_allow_create_new_local --type=bool --value=true
|
php /var/www/html/occ config:system:set files_external_allow_create_new_local --type=bool --value=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# AIO app start # Do not remove or change this line!
|
||||||
# AIO app
|
# AIO app
|
||||||
if [ "$THIS_IS_AIO" = "true" ]; then
|
if [ "$THIS_IS_AIO" = "true" ]; then
|
||||||
if [ "$(php /var/www/html/occ config:app:get nextcloud-aio enabled)" != "yes" ]; then
|
if [ "$(php /var/www/html/occ config:app:get nextcloud-aio enabled)" != "yes" ]; then
|
||||||
|
|
@ -513,6 +521,7 @@ else
|
||||||
php /var/www/html/occ app:disable nextcloud-aio
|
php /var/www/html/occ app:disable nextcloud-aio
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
# AIO app end # Do not remove or change this line!
|
||||||
|
|
||||||
# Notify push
|
# Notify push
|
||||||
if ! [ -d "/var/www/html/custom_apps/notify_push" ]; then
|
if ! [ -d "/var/www/html/custom_apps/notify_push" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue