Migrate to Nextcloud 10.0.1
This commit is contained in:
parent
7961a7349c
commit
ea15c87a61
26
Dockerfile
26
Dockerfile
|
@ -1,9 +1,9 @@
|
||||||
FROM eriol/debian-i386:jessie
|
FROM eriol/debian-i386:jessie
|
||||||
MAINTAINER Daniele Tricoli "eriol@mornie.org"
|
MAINTAINER Daniele Tricoli "eriol@mornie.org"
|
||||||
|
|
||||||
ENV LAST_UPDATE 2016-04-23
|
ENV LAST_UPDATE 2016-11-28
|
||||||
ENV OWNCLOUD_VERSION 9.0.1
|
ENV NEXTCLOUD_VERSION 10.0.1
|
||||||
ENV OWNCLOUD_SHA256SUM 44c98ffa3b957faf3af884cafa1d88c05762b65452592768a926e2c3c3a66615
|
ENV NEXTCLOUD_SHA256SUM 39412a28f02fd7ca8c9267b4ccf02ac28c1eb27995d77c06ceb2699375978b25
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y --no-install-recommends install \
|
RUN apt-get update && apt-get -y --no-install-recommends install \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
|
@ -22,25 +22,25 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
|
||||||
php5-sqlite && \
|
php5-sqlite && \
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
ADD https://download.owncloud.org/community/owncloud-${OWNCLOUD_VERSION}.tar.bz2 /tmp/owncloud.tar.bz2
|
ADD https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 /tmp/nextcloud.tar.bz2
|
||||||
RUN sha256sum /tmp/owncloud.tar.bz2 | grep -q ${OWNCLOUD_SHA256SUM} && \
|
RUN sha256sum /tmp/nextcloud.tar.bz2 | grep -q ${NEXTCLOUD_SHA256SUM} && \
|
||||||
tar -xf /tmp/owncloud.tar.bz2 -C /srv && \
|
tar -xf /tmp/nextcloud.tar.bz2 -C /srv && \
|
||||||
mkdir /srv/owncloud/data && \
|
mkdir /srv/nextcloud/data && \
|
||||||
chown -R www-data:www-data /srv/owncloud && \
|
chown -R www-data:www-data /srv/nextcloud && \
|
||||||
rm /tmp/owncloud.tar.bz2
|
rm /tmp/nextcloud.tar.bz2
|
||||||
|
|
||||||
ADD owncloud.conf /etc/nginx/sites-available/owncloud.conf
|
ADD nextcloud.conf /etc/nginx/sites-available/nextcloud.conf
|
||||||
RUN ln -s /etc/nginx/sites-available/owncloud.conf /etc/nginx/sites-enabled/ && \
|
RUN ln -s /etc/nginx/sites-available/nextcloud.conf /etc/nginx/sites-enabled/ && \
|
||||||
rm -f /etc/nginx/sites-enabled/default
|
rm -f /etc/nginx/sites-enabled/default
|
||||||
|
|
||||||
RUN echo "cgi.fix_pathinfo = 0;" >> /etc/php5/fpm/php.ini && \
|
RUN echo "cgi.fix_pathinfo = 0;" >> /etc/php5/fpm/php.ini && \
|
||||||
echo "daemon off;" >> /etc/nginx/nginx.conf
|
echo "daemon off;" >> /etc/nginx/nginx.conf
|
||||||
|
|
||||||
ADD crontab /etc/cron.d/owncloud
|
ADD crontab /etc/cron.d/nextcloud
|
||||||
|
|
||||||
ADD start.sh /start.sh
|
ADD start.sh /start.sh
|
||||||
|
|
||||||
VOLUME ["/srv/owncloud/config", "/srv/owncloud/data"]
|
VOLUME ["/srv/nextcloud/config", "/srv/nextcloud/data"]
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
||||||
Copyright (c) 2015, Daniele Tricoli <eriol@mornie.org>
|
Copyright (c) 2015-2016, Daniele Tricoli <eriol@mornie.org>
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
4
crontab
4
crontab
|
@ -1,5 +1,5 @@
|
||||||
# /etc/cron.d/owncloud: crontab fragment for owncloud
|
# /etc/cron.d/nextcloud: crontab fragment for nextcloud
|
||||||
# Since version 8.5.0 news app will not update using ajax and webcron so
|
# Since version 8.5.0 news app will not update using ajax and webcron so
|
||||||
# system cron is needed.
|
# system cron is needed.
|
||||||
|
|
||||||
*/15 * * * * www-data php -f /srv/owncloud/cron.php
|
*/15 * * * * www-data php -f /srv/nextcloud/cron.php
|
||||||
|
|
Loading…
Reference in New Issue