diff --git a/Dockerfile b/Dockerfile index 3f3f4e84863c7414303622582ae434fe3c77878a..7f54b4c752507b7796203baae7d87cf20b3f1097 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,24 @@ -FROM nextcloud:19.0.12-fpm +FROM nextcloud:20.0.11-fpm ARG BASE_DIR="/usr/src/nextcloud" ARG TMP_PATCH_DIR="/tmp/build_patches" ARG THEME_VERSION="19.0.9.6" -ARG NEWS_VERSION="14.2.2" -ARG QUOTA_WARN_VERSION="1.8.0" -ARG NOTES_VERSION="3.6.4" +ARG NEWS_VERSION="16.0.0" +ARG QUOTA_WARN_VERSION="1.9.1" +ARG NOTES_VERSION="4.1.0" ARG CONTACTS_VERSION="3.5.1" -ARG CALENDAR_VERSION="2.0.5" -ARG USER_BACKEND_RAW_SQL_VERSION="1.0.12" +ARG CALENDAR_VERSION="2.3.0" +ARG USER_BACKEND_RAW_SQL_VERSION="1.1.0" ARG EMAIL_RECOVERY_JOB_ID="162557" -ARG RAINLOOP_VERSION="7.1.0" -ARG RAINLOOP_COMMIT_SHA="c21dfcab" +ARG RAINLOOP_VERSION="7.1.2" +ARG RAINLOOP_COMMIT_SHA="aa5c57a7" ARG USC_VERSION="1.0.0" +ARG EDA_TAG="nc-20" RUN mkdir -p /var/www/skeleton/Documents && mkdir -p /var/www/skeleton/Images COPY patches/ ${TMP_PATCH_DIR}/ COPY custom_entrypoint.sh / RUN chmod +x /custom_entrypoint.sh -# RUN sed -i 's/19,0,12,0/19,0,12,1/' ${BASE_DIR}/version.php +RUN sed -i 's/20,0,11,1/20,0,11,2/' ${BASE_DIR}/version.php # Install unzip for unzipping artifacts RUN apt-get update && apt-get install unzip @@ -44,7 +45,7 @@ RUN curl -fsSL -o contacts.tar.gz \ rm contacts.tar.gz; RUN curl -fsSL -o calendar.tar.gz \ - "https://github.com/nextcloud/calendar/releases/download/v${CALENDAR_VERSION}/calendar.tar.gz" && \ + "https://github.com/nextcloud-releases/calendar/releases/download/v${CALENDAR_VERSION}/calendar.tar.gz" && \ tar -xf calendar.tar.gz -C ${BASE_DIR}/custom_apps/ && \ rm calendar.tar.gz; @@ -65,6 +66,12 @@ RUN curl -fsSL -o rainloop.tar.gz \ mv "${BASE_DIR}/custom_apps/rainloop-nextcloud-${RAINLOOP_VERSION}-${RAINLOOP_COMMIT_SHA}" "${BASE_DIR}/custom_apps/rainloop" && \ rm rainloop.tar.gz; +RUN curl -fsSL -o ecloud_drop_account.tar.gz \ + "https://gitlab.e.foundation/e/infra/selfhost/nextcloud-apps/ecloud-drop-account/-/archive/${EDA_TAG}/ecloud-drop-account-${EDA_TAG}.tar.gz" && \ + tar -xf ecloud_drop_account.tar.gz -C ${BASE_DIR}/custom_apps/ && \ + mv "${BASE_DIR}/custom_apps/ecloud-drop-account-${EDA_TAG}" "${BASE_DIR}/custom_apps/ecloud_drop_account" && \ + rm ecloud_drop_account.tar.gz; + # Remove unzip when unzipping is done RUN apt-get -y remove unzip @@ -74,8 +81,9 @@ RUN patch -u ${BASE_DIR}/core/templates/layout.user.php -i ${TMP_PATCH_DIR}/003- RUN patch -u ${BASE_DIR}/core/Controller/ContactsMenuController.php -i ${TMP_PATCH_DIR}/004-contact-search-controller-removal.patch RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-core.patch RUN cd ${BASE_DIR}/custom_apps && patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-custom-app.patch -RUN patch -u ${BASE_DIR}/custom_apps/notes/lib/Service/NoteUtil.php -i ${TMP_PATCH_DIR}/006-notes-url-fix.patch -RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/007-recovery-email-changes.patch +RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/006-recovery-email-changes.patch +# RUN patch -u ${BASE_DIR}/apps/files_trashbin/lib/Storage.php -i ${TMP_PATCH_DIR}/007-files-trashbin-parent-wrapper.patch +RUN patch -u ${BASE_DIR}/apps/settings/lib/Settings/Personal/ServerDevNotice.php -i ${TMP_PATCH_DIR}/008-remove-dev-notice.patch RUN rm -rf ${TMP_PATCH_DIR} # autocomplete leak tweak apps frontend with sed, disable group suggestion diff --git a/custom_entrypoint.sh b/custom_entrypoint.sh index 9d9b0a2aad170b9599d27272e18eb5adf6432444..0aead91041389e99ee95ad5b7191253bbd4b508d 100644 --- a/custom_entrypoint.sh +++ b/custom_entrypoint.sh @@ -14,6 +14,7 @@ rsync $rsync_options --include "/contacts/" --exclude '/*' $SRC_DIR/custom_apps/ rsync $rsync_options --include "/user_backend_sql_raw/" --exclude '/*' $SRC_DIR/custom_apps/ $DST_DIR/custom_apps/ rsync $rsync_options --include "/rainloop" --exclude '/*' $SRC_DIR/custom_apps/ $DST_DIR/custom_apps/ rsync $rsync_options --include "/email-recovery" --exclude '/*' $SRC_DIR/custom_apps/ $DST_DIR/custom_apps/ +rsync $rsync_options --include "/ecloud_drop_account" --exclude '/*' $SRC_DIR/custom_apps/ $DST_DIR/custom_apps/ rsync $rsync_options --include "/eelo/" --exclude '/*' $SRC_DIR/themes/ $DST_DIR/themes/ diff --git a/patches/003-contact-search-removal.patch b/patches/003-contact-search-removal.patch index a4887e0784585fa7129ef78c4ee8b6565113c20b..6449e213a10cc69636313024a385d1cc2b4f766b 100644 --- a/patches/003-contact-search-removal.patch +++ b/patches/003-contact-search-removal.patch @@ -5,12 +5,12 @@ Subject: [PATCH] remove user search icon in header tab This patch removes the top right icon enabling the global user search function available to all in nextcloud. diff --git layout.user.php layout.user.php-new ---- layout.user.php 2021-02-02 16:47:17.348572250 +0100 -+++ layout.user.php-new 2021-02-02 16:47:33.128646878 +0100 -@@ -111,14 +111,6 @@ - autocomplete="off"> - - +--- layout.user.php 2021-06-22 14:06:34.786843164 +0530 ++++ layout.user.php-new 2021-06-22 14:07:45.938569109 +0530 +@@ -103,14 +103,6 @@ + +