Compare commits

...

31 Commits
53 ... 155

Author SHA1 Message Date
Homer d840dce905 Merge pull request #62 from linuxserver/NC14
Update `default`
2018-09-29 08:57:00 +01:00
chbmb f8225c49dd Update default 2018-09-29 07:52:26 +01:00
sparklyballs f05950af7d Merge pull request #58 from linuxserver/rebase_alpine_3.8
rebase to alpine 3.8
2018-09-05 19:14:38 +01:00
sparklyballs 002dff07ea rebase to alpine 3.8 2018-09-05 18:22:37 +01:00
sparklyballs 3b169e9d01 Merge pull request #56 from linuxserver/use_latest
use latest rather than specific version for initial install
2018-06-11 14:36:08 +01:00
sparklyballs ac0ee5d01d use latest rather than specific version for initial install 2018-06-11 11:11:13 +01:00
sparklyballs 78d4d427e7 Merge pull request #55 from linuxserver/bump_13.0.1
bump default install to 13.0.1
2018-04-26 13:28:46 +01:00
sparklyballs 1824219e79 bump default install to 13.0.1 2018-04-26 09:46:54 +01:00
chbmb b8d97ff66d Merge pull request #51 from linuxserver/nextcloud_13
bump default install to 13
2018-02-06 22:36:08 +00:00
sparklyballs ec4da50224 bump default install to 13 2018-02-06 12:22:52 +00:00
sparklyballs 1cc613b677 Merge pull request #50 from linuxserver/alpine_3.7
bump alpine 3.7
2018-01-26 15:39:17 +00:00
sparklyballs 9878957017 bump alpine 3.7 2018-01-25 22:23:28 +00:00
sparklyballs c855b2a08b revert adding php7-redis 2018-01-25 22:20:43 +00:00
sparklyballs 743fda816f add php7-redis package 2018-01-25 22:09:56 +00:00
sparklyballs d4643180d2 bump alpine 3.7 2018-01-25 22:06:54 +00:00
sparklyballs 0cc6bdbea1 Merge pull request #47 from linuxserver/version_bump
bump install to 12.0.4 and fix continuation lines
2017-12-12 22:03:29 +00:00
sparklyballs e5dc93fd8e bump install to 12.0.4 and fix continuation lines 2017-12-12 14:36:09 +00:00
sparklyballs 705610b073 Merge pull request #45 from linuxserver/php_fixes
sed php.ini for opcache requirements
2017-10-15 18:55:03 +01:00
sparklyballs c4a8cafb98 sed php.ini for opcache requirements 2017-10-15 10:21:52 +01:00
sparklyballs a29fb57ce6 Merge pull request #43 from linuxserver/bump_12.03
bump default install to 12.0.3
2017-09-21 09:31:55 +01:00
sparklyballs 34122d554a bump default install to 12.0.3 2017-09-20 22:12:39 +01:00
aptalca be108f29c0 Merge pull request #42 from linuxserver/bump_12.0.2
bump default install to 12.0.2
2017-08-19 11:33:45 -04:00
sparklyballs 1acf245951 bump default install to 12.0.2 2017-08-19 00:43:36 +01:00
sparklyballs 678e055246 update of README with badges for new ci 2017-07-11 17:28:57 +01:00
j0nnymoe 087af6a87d Merge pull request #34 from linuxserver/alpine_3.6
bump to alpine 3.6
2017-05-25 22:37:43 +01:00
sparklyballs b3e535133a bump to alpine 3.6 2017-05-25 11:33:38 +01:00
Neil 6cfdcbe06a Merge pull request #33 from linuxserver/nextcloud_12
update to nextcloud 12
2017-05-22 14:56:19 +01:00
sparklyballs b88a56ff28 amend changelog line 2017-05-22 13:47:56 +01:00
sparklyballs 007691caf8 update to nextcloud 12 2017-05-22 13:41:58 +01:00
j0nnymoe 4295126fc3 Merge pull request #29 from linuxserver/memcached_repo
use community repo version of php7-memcached, has been fixed in php 7.14
2017-05-03 13:42:32 +01:00
sparklyballs 5901725af9 use community repo version of php7-memcached, has been fixed in php 7.14 2017-05-03 09:39:25 +01:00
4 changed files with 52 additions and 52 deletions
+32 -48
View File
@@ -1,19 +1,16 @@
FROM lsiobase/alpine.nginx:3.5
MAINTAINER sparklyballs
FROM lsiobase/alpine.nginx:3.8
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# package version
ENV NEXTCLOUD_VER="11.0.2"
# environment settings
# environment settings
ENV NEXTCLOUD_PATH="/config/www/nextcloud"
# install build-dependencies
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
autoconf \
automake \
@@ -21,31 +18,15 @@ RUN \
g++ \
gcc \
make \
php7-dev \
re2c \
samba-dev \
zlib-dev && \
apk add --no-cache --virtual=build-dependencies \
--repository http://nl.alpinelinux.org/alpine/edge/community \
php7-dev && \
# install runtime packages
echo "**** install runtime packages ****" && \
apk add --no-cache \
curl \
ffmpeg \
libxml2 \
samba \
sudo \
tar \
unzip && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/main \
icu-libs \
libwebp && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/community \
php7-apcu \
php7-bz2 \
php7-ctype \
@@ -59,52 +40,55 @@ RUN \
php7-imap \
php7-intl \
php7-ldap \
php7-mbstring \
php7-mcrypt \
php7-memcached \
php7-opcache \
php7-pcntl \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-pgsql \
php7-posix \
php7-redis \
php7-sqlite3 \
php7-xml \
php7-xmlreader \
php7-zip && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
php7-memcached && \
# fetch php smbclient source
php7-zip \
samba \
sudo \
tar \
unzip && \
echo "**** compile smbclient ****" && \
git clone git://github.com/eduardok/libsmbclient-php.git /tmp/smbclient && \
# compile smbclient
cd /tmp/smbclient && \
phpize7 && \
./configure \
--with-php-config=/usr/bin/php-config7 && \
make && \
make install && \
# uninstall build-dependencies
apk del --purge \
build-dependencies && \
# configure php and nginx for nextcloud
echo "**** configure php and nginx for nextcloud ****" && \
echo "extension="smbclient.so"" > /etc/php7/conf.d/00_smbclient.ini && \
sed -i \
's/;always_populate_raw_post_data = -1/always_populate_raw_post_data = -1/g' \
/etc/php7/php.ini && \
-e 's/;opcache.enable.*=.*/opcache.enable=1/g' \
-e 's/;opcache.interned_strings_buffer.*=.*/opcache.interned_strings_buffer=8/g' \
-e 's/;opcache.max_accelerated_files.*=.*/opcache.max_accelerated_files=10000/g' \
-e 's/;opcache.memory_consumption.*=.*/opcache.memory_consumption=128/g' \
-e 's/;opcache.save_comments.*=.*/opcache.save_comments=1/g' \
-e 's/;opcache.revalidate_freq.*=.*/opcache.revalidate_freq=1/g' \
-e 's/;always_populate_raw_post_data.*=.*/always_populate_raw_post_data=-1/g' \
/etc/php7/php.ini && \
sed -i \
'/opcache.enable=1/a opcache.enable_cli=1' \
/etc/php7/php.ini && \
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
# cleanup
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# copy local files
# copy local files
COPY root/ /
# ports and volumes
# ports and volumes
EXPOSE 443
VOLUME /config /data
+15 -1
View File
@@ -13,7 +13,7 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
# linuxserver/nextcloud
[![](https://images.microbadger.com/badges/version/linuxserver/nextcloud.svg)](https://microbadger.com/images/linuxserver/nextcloud "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/nextcloud.svg)](http://microbadger.com/images/linuxserver/nextcloud "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/nextcloud.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/nextcloud.svg)][hub][![Build Status](http://jenkins.linuxserver.io:8080/buildStatus/icon?job=Dockers/LinuxServer.io/linuxserver-nextcloud)](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-nextcloud/)
[![](https://images.microbadger.com/badges/version/linuxserver/nextcloud.svg)](https://microbadger.com/images/linuxserver/nextcloud "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/nextcloud.svg)](https://microbadger.com/images/linuxserver/nextcloud "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/nextcloud.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/nextcloud.svg)][hub][![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Builders/x86-64/x86-64-nextcloud)](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-nextcloud/)
[Nextcloud][appurl] gives you access to all your files wherever you are.
@@ -65,6 +65,8 @@ Access the webui at `<your-ip>:443`, for more information check out [Nextcloud][
Please note you will need a MySQL/MariaDB or other backend database to set this up. Also please look [here](https://docs.nextcloud.com/server/11/admin_manual/installation/system_requirements.html#database-requirements-for-mysql-mariadb) for how to configure your database with regard to binlog format and installation.
If updating to nextcloud 12 you will need to comment out line `add_header X-Frame-Options "SAMEORIGIN";` in the file /config/nginx/site-confs/default
## Info
* Monitor the logs of the container in realtime `docker logs -f nextcloud`.
@@ -79,4 +81,16 @@ Please note you will need a MySQL/MariaDB or other backend database to set this
## Versions
+ **05.09.18:** Rebase to alpine 3.8.
+ **11.06.18:** Use latest rather than specific version for initial install.
+ **26.04.18:** Bump default install to 13.0.1.
+ **06.02.18:** Bump default install to 13.0.0.
+ **26.01.18:** Rebase to alpine 3.7, bump default install to 12.0.5.
+ **12.12.17:** Bump default install to 12.0.4, fix continuation lines.
+ **15.10.17:** Sed php.ini for opcache requirements in newer nextcloud versions.
+ **20.09.17:** Bump default install to 12.0.3.
+ **19.08.17:** Bump default install to 12.0.2.
+ **25.05.17:** Rebase to alpine 3.6.
+ **22.05.17:** Update to nextcloud 12.0, adding required dependecies and note about commenting out SAMEORIGIN; line.
+ **03.05.17:** Use community repo of memcached.
+ **07.03.17:** Release into main repository and upgrade to php7 and Alpine 3.5.
+4 -2
View File
@@ -20,12 +20,13 @@ server {
# Add headers to serve security related headers
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
# add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer always;
# Path to the root of your installation
root /config/www/nextcloud/;
# set max upload size
@@ -97,6 +98,7 @@ server {
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer always;
# Optional: Don't log access to assets
access_log off;
}
+1 -1
View File
@@ -7,7 +7,7 @@ mkdir -p \
# install app
if [ ! -e "${NEXTCLOUD_PATH}/index.php" ]; then
curl -o /tmp/nextcloud.tar.bz2 -L \
https://download.nextcloud.com/server/releases/nextcloud-"${NEXTCLOUD_VER}".tar.bz2
https://download.nextcloud.com/server/releases/latest.tar.bz2
tar xf /tmp/nextcloud.tar.bz2 -C \
"${NEXTCLOUD_PATH}" --strip-components=1
rm -f \