Skip to content

Commit 7397494

Browse files
aptalcathelamer
authored andcommitted
Download nextcloud during build
1 parent 2175618 commit 7397494

6 files changed

Lines changed: 12 additions & 9 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ RUN \
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 && \

Dockerfile.aarch64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ RUN \
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 && \

Dockerfile.armhf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ RUN \
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 && \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ app_setup_block: |
5858
5959
# changelog
6060
changelogs:
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." }

root/etc/cont-init.d/50-install

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@ mkdir -p \
66

77
# install app
88
if [ ! -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"

0 commit comments

Comments
 (0)