Download nextcloud during build

This commit is contained in:
aptalca
2019-07-13 23:55:29 -04:00
committed by Ryan Kuba
parent 217561854c
commit 7397494f49
6 changed files with 12 additions and 9 deletions
+3 -1
View File
@@ -92,7 +92,9 @@ RUN \
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
fi && \
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
echo "**** download nextcloud ****" && \
curl -o /app/nextcloud.tar.bz2 -L \
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
+3 -1
View File
@@ -92,7 +92,9 @@ RUN \
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
fi && \
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
echo "**** download nextcloud ****" && \
curl -o /app/nextcloud.tar.bz2 -L \
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
+3 -1
View File
@@ -92,7 +92,9 @@ RUN \
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
fi && \
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
echo "**** download nextcloud ****" && \
curl -o /app/nextcloud.tar.bz2 -L \
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
+1
View File
@@ -191,6 +191,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **14.07.19:** - Download nextcloud during build time.
* **28.06.19:** - Rebasing to alpine 3.10.
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
* **27.02.19:** - Updating base nginx config to sync up with v15 requirements.
+1
View File
@@ -58,6 +58,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "14.07.19:", desc: "Download nextcloud during build time." }
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
- { date: "27.02.19:", desc: "Updating base nginx config to sync up with v15 requirements." }
+1 -6
View File
@@ -6,13 +6,8 @@ mkdir -p \
# install app
if [ ! -e "${NEXTCLOUD_PATH}/index.php" ]; then
NEXTCLOUD_VERSION=$(cat /version.txt)
curl -o /tmp/nextcloud.tar.bz2 -L \
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2
tar xf /tmp/nextcloud.tar.bz2 -C \
tar xf /app/nextcloud.tar.bz2 -C \
"${NEXTCLOUD_PATH}" --strip-components=1
rm -f \
/tmp/nextcloud.tar.bz2
chown abc:abc -R \
"${NEXTCLOUD_PATH}"
chmod +x "${NEXTCLOUD_PATH}/occ"