nextcloud: fix daily checkusm check

This commit is contained in:
Wonderfall 2017-02-23 12:54:27 +01:00
parent f85c390281
commit 6a1b9b7511
2 changed files with 8 additions and 3 deletions

View File

@ -10,7 +10,7 @@
- Based on Alpine Linux Edge.
- Bundled with nginx and PHP 7.1.
- Automatic installation using environment variables.
- Package integrity and authenticity checked during building process.
- Package integrity (SHA512) and authenticity (PGP) checked during building process.
- Data and apps persistence.
- OPCache (opcocde), APCu (local) installed and configured.
- system cron task running.
@ -197,6 +197,9 @@ Redis can be used for distributed and file locking cache, alongside with APCu (l
### How to configure Nextant
You will have to deploy a Solr server, I've shown an example above with docker-compose. Once Nextant app is installed, go to "additional settings" in your admin pannel and use http://solr:8983/solr as "Adress of your Solr Servlet". There you go. You may however experience the same issue as mine : https://github.com/nextcloud/server/pull/3160 (let's hope there'll be at least a backport...).
### Tip : how to use occ command
There is a script for that, so you shouldn't bother to log into the container, set the right permissions, and so on. Use `docker exec -ti nexcloud occ command`.
### Reverse proxy
Of course you can use your own solution to do so! nginx, Haproxy, Caddy, h2o, there's plenty of choices and documentation about it on the Web.

View File

@ -78,8 +78,10 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
&& sed -i 's|;session.save_path = "/tmp"|session.save_path = "/data/session"|g' /etc/php7.1/php.ini \
&& mkdir /nextcloud \
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2 \
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2.sha256 \
&& CHECKSUM_STATE=$(echo -n $(sha256sum -c latest.tar.bz2.sha256 latest.tar.bz2) | tail -c 2) \
&& echo "Verifying checksum of latest.tar.bz2..." \
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2.sha512 \
&& echo "$(cat latest.tar.bz2.sha512 | awk '{print $1;}') latest.tar.bz2" > latest.tar.bz2.sha512 \
&& CHECKSUM_STATE=$(echo -n $(sha512sum -c latest.tar.bz2.sha512) | tail -c 2) \
&& if [ "${CHECKSUM_STATE}" != "OK" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \
&& tar xjf latest.tar.bz2 --strip 1 -C /nextcloud \
&& apk del ${BUILD_DEPS} php7.1-pear php7.1-dev \