File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292 NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
9393 | awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}' ); \
9494 fi && \
95- echo ${NEXTCLOUD_RELEASE} > /version.txt && \
95+ echo "**** download nextcloud ****" && \
96+ curl -o /app/nextcloud.tar.bz2 -L \
97+ https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
9698 echo "**** cleanup ****" && \
9799 apk del --purge \
98100 build-dependencies && \
Original file line number Diff line number Diff line change 9292 NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
9393 | awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
9494 fi && \
95- echo ${NEXTCLOUD_RELEASE} > /version.txt && \
95+ echo "**** download nextcloud ****" && \
96+ curl -o /app/nextcloud.tar.bz2 -L \
97+ https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
9698 echo "**** cleanup ****" && \
9799 apk del --purge \
98100 build-dependencies && \
Original file line number Diff line number Diff line change 9292 NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
9393 | awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
9494 fi && \
95- echo ${NEXTCLOUD_RELEASE} > /version.txt && \
95+ echo "**** download nextcloud ****" && \
96+ curl -o /app/nextcloud.tar.bz2 -L \
97+ https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
9698 echo "**** cleanup ****" && \
9799 apk del --purge \
98100 build-dependencies && \
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
191191
192192## Versions
193193
194+ * ** 14.07.19:** - Download nextcloud during build time.
194195* ** 28.06.19:** - Rebasing to alpine 3.10.
195196* ** 23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
196197* ** 27.02.19:** - Updating base nginx config to sync up with v15 requirements.
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ app_setup_block: |
5858
5959# changelog
6060changelogs :
61+ - { date: "14.07.19:", desc: "Download nextcloud during build time." }
6162 - { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
6263 - { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
6364 - { date: "27.02.19:", desc: "Updating base nginx config to sync up with v15 requirements." }
Original file line number Diff line number Diff line change @@ -6,13 +6,8 @@ mkdir -p \
66
77# install app
88if [ ! -e "${NEXTCLOUD_PATH}/index.php" ]; then
9- NEXTCLOUD_VERSION=$(cat /version.txt)
10- curl -o /tmp/nextcloud.tar.bz2 -L \
11- https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2
12- tar xf /tmp/nextcloud.tar.bz2 -C \
9+ tar xf /app/nextcloud.tar.bz2 -C \
1310 "${NEXTCLOUD_PATH}" --strip-components=1
14- rm -f \
15- /tmp/nextcloud.tar.bz2
1611 chown abc:abc -R \
1712 "${NEXTCLOUD_PATH}"
1813 chmod +x "${NEXTCLOUD_PATH}/occ"
You can’t perform that action at this time.
0 commit comments