Compare commits

...

58 Commits
5 ... 115

Author SHA1 Message Date
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
Neil 414ae23314 Merge pull request #24 from linuxserver/php7_edge
use edge repository for php dependencies
2017-03-29 23:42:40 +01:00
sparklyballs 2146f5cc1d use edge repository for php dependencies 2017-03-29 22:52:04 +01:00
sparklyballs 6cb3a060ba fix formatting markdown README 2017-03-15 15:52:48 +00:00
Neil b62b0f55f6 Merge pull request #18 from linuxserver/3.5
3.5
2017-03-08 00:18:29 +00:00
sparklyballs e26d5d8271 update readme, add badges 2017-03-07 23:51:53 +00:00
Neil f096b1f5ea Update README.md 2017-03-07 23:45:59 +00:00
Neil 80f10d8104 Update README.md 2017-03-07 23:43:55 +00:00
j0nnymoe 5177982d19 Merge pull request #17 from linuxserver/11.0.2
bump default install to 11.0.2
2017-02-28 11:04:05 +00:00
sparklyballs 5dd81e69d0 Update Dockerfile 2017-02-28 10:32:07 +00:00
sparklyballs 8ef83db0e2 bump default install to 11.0.2 2017-02-28 10:30:11 +00:00
sparklyballs d885fb23a7 remove dependencies already in baseimage 2017-02-14 22:45:07 +00:00
sparklyballs c90b0ea6e3 fix cron job 2017-02-14 20:53:27 +00:00
sparklyballs 339c5477ec first save up, satisfying depedencies only 2017-02-14 20:14:00 +00:00
sparklyballs db5bd27bdb Merge pull request #16 from linuxserver/11.0.1
Update Dockerfile
2017-01-22 22:47:43 +00:00
Neil 71a4b574ce Update Dockerfile 2017-01-22 22:40:43 +00:00
sparklyballs b24fecdd3c bump to version 11 for initial installation. 2016-12-22 02:14:21 +00:00
sparklyballs 278b197c87 Merge pull request #13 from linuxserver/CHBMB-patch-1
Update Dockerfile
2016-12-11 20:37:50 +00:00
Neil 62259e8164 Update Dockerfile 2016-12-11 20:26:35 +00:00
sparklyballs 9514482eef add version layer information 2016-10-14 15:18:00 +01:00
sparklyballs aac5ddb66f update media links README 2016-10-07 10:17:14 +01:00
sparklyballs c014556ca9 bump default installed to 10.0.1 2016-10-07 07:34:38 +01:00
sparklyballs 1abc67db8c update image link 2016-10-05 12:03:27 +01:00
sparklyballs 01111c0a0f transcode folder change, bump to 1.7, add ignore and templates 2016-09-17 02:38:24 +01:00
sparklyballs 78fb8e7c91 change version to 10.0.0 2016-09-12 20:00:27 +01:00
sparklyballs 216a8827fb Merge pull request #9 from sparklyballs/tidy-and-use-tar-bz2
Tidy and use tar bz2
2016-08-22 12:16:56 +01:00
sparklyballs 19a0c175df tidy up in general, use tar.bz2 instead of zip 2016-08-22 12:12:55 +01:00
sparklyballs bb9545a21f tidy up in general, use tar.bz2 instead of zip 2016-08-22 12:11:48 +01:00
sparklyballs 768582abc0 tidy up in general, use tar.bz2 instead of zip 2016-08-22 12:09:22 +01:00
j0nnymoe f42bb84f18 Merge pull request #7 from sparklyballs/postgres
readd back php5-pgsql
2016-08-17 11:59:03 +01:00
sparklyballs 32e490a6ec readd back php5-pgsql 2016-08-17 11:52:29 +01:00
sparklyballs 97c478a14f Merge pull request #6 from sparklyballs/master
clean up second php5 pgsql dependency
2016-08-02 03:46:23 +01:00
sparklyballs 3000347ea3 clean up second php5 pgsql dependency 2016-08-02 03:45:39 +01:00
sparklyballs 1310ff6d9e Merge pull request #5 from sparklyballs/cron
add cron job
2016-07-26 01:50:35 +01:00
sparklyballs 0c3d8a709d add cron job 2016-07-26 01:43:43 +01:00
sparklyballs fc53a872bf bump to 9.0.53 2016-07-25 08:00:39 +01:00
13 changed files with 297 additions and 89 deletions
+6
View File
@@ -0,0 +1,6 @@
.git
.gitignore
.github
.gitattributes
READMETEMPLATE.md
README.md
+17
View File
@@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
+21
View File
@@ -0,0 +1,21 @@
<!--- Provide a general summary of the issue in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- If you have an issue with the project, please provide us with the following information -->
<!--- Host OS -->
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. -->
<!--- Docker log output, docker log <container-name> -->
<!--- Mention if you're using symlinks on any of the volume mounts. -->
<!--- If you have a suggestion or fix for the project, please provide us with the following information -->
<!--- What you think your suggestion brings to the project, or fixes with the project -->
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? -->
## Thanks, team linuxserver.io
+15
View File
@@ -0,0 +1,15 @@
<!--- Provide a general summary of your changes in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- Before submitting a pull request please check the following -->
<!--- That you have made a branch in your fork, we'd rather not merge from your master -->
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
<!--- -->
## Thanks, team linuxserver.io
+43
View File
@@ -0,0 +1,43 @@
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# =========================
# Operating System Files
# =========================
# OSX
# =========================
.DS_Store
.AppleDouble
.LSOverride
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
+73 -71
View File
@@ -1,12 +1,19 @@
FROM lsiobase/alpine.nginx
MAINTAINER sparklyballs
FROM lsiobase/alpine.nginx:3.7
# set paths
ENV WWW_ROOT="/config/www"
ENV NEXTCLOUD_PATH="${WWW_ROOT}/nextcloud"
# 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="13.0.0"
# 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 \
@@ -14,84 +21,79 @@ RUN \
g++ \
gcc \
make \
php5-dev \
php7-dev \
re2c \
samba-dev \
zlib-dev && \
# fetch php smbclient source
git clone git://github.com/eduardok/libsmbclient-php.git /tmp/smbclient && \
# compile smbclient
cd /tmp/smbclient && \
phpize && \
./configure && \
make && \
make install && \
# uninstall build-dependencies
apk del --purge \
build-dependencies && \
# cleanup
rm -rfv /tmp/*
# install runtime packages
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
curl \
ffmpeg \
libxml2 \
php5-apcu \
php5-bz2 \
php5-ctype \
php5-curl \
php5-dom \
php5-exif \
php5-ftp \
php5-gd \
php5-gmp \
php5-iconv \
php5-imap \
php5-intl \
php5-ldap \
php5-mcrypt \
php5-openssl \
php5-pcntl \
php5-pdo_mysql \
php5-pdo_pgsql \
php5-pdo_sqlite \
php5-pgsql \
php5-posix \
php5-sqlite3 \
php5-xml \
php5-xmlreader \
php5-zip \
php5-zlib \
php7-apcu \
php7-bz2 \
php7-ctype \
php7-curl \
php7-dom \
php7-exif \
php7-ftp \
php7-gd \
php7-gmp \
php7-iconv \
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 \
samba \
sudo \
tar \
unzip && \
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing \
php5-memcached
# configure php extensions
RUN \
echo "extension="smbclient.so"" >> /etc/php5/php.ini
# configure php for nextcloud
RUN \
echo "**** compile smbclient ****" && \
git clone git://github.com/eduardok/libsmbclient-php.git /tmp/smbclient && \
cd /tmp/smbclient && \
phpize7 && \
./configure \
--with-php-config=/usr/bin/php-config7 && \
make && \
make install && \
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/php5/php.ini && \
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /defaults/nginx-fpm.conf
-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 && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# add local files
# copy local files
COPY root/ /
# ports and volumes
VOLUME /config /data
# ports and volumes
EXPOSE 443
# set nextcloud version
ENV NEXTCLOUD_VER="9.0.52"
VOLUME /config /data
+91 -4
View File
@@ -1,6 +1,93 @@
![https://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)
[linuxserverurl]: https://linuxserver.io
[forumurl]: https://forum.linuxserver.io
[ircurl]: https://www.linuxserver.io/irc/
[podcasturl]: https://www.linuxserver.io/podcast/
[appurl]: https://nextcloud.com/
[hub]: https://hub.docker.com/r/linuxserver/nextcloud/
## This is a Container in active development, and should not be used by the general public.
If you are curious about the current progress or want to comment\contribute to this work, feel free to join us at our irc channel:
[IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io` or visit our website at [https://linuxserver.io](https://www.linuxserver.io/).
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
* [forum.linuxserver.io][forumurl]
* [IRC][ircurl] on freenode at `#linuxserver.io`
* [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)](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.
Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home.
[![nextcloud](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/nextcloud-icon.png)][appurl]
## Usage
```
docker create \
--name nextcloud \
-p 443:443 \
-e PUID=<UID> -e PGID=<GID> \
-v </path/to/appdata>:/config \
-v <path/to/data>:/data \
linuxserver/nextcloud
```
## Parameters
`The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container.
So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.`
* `-p 443` - the port nextcloud web interface
* `-v /config` - nextcloud configs
* `-v /data` - your personal data
* `-e PGID` for for GroupID - see below for explanation
* `-e PUID` for for UserID - see below for explanation
It is based on Alpine Linux with s6 overlay, for shell access whilst the container is running do `docker exec -it nextcloud /bin/bash`
### User / Group Identifiers
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" <sup>TM</sup>.
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
```
$ id <dockeruser>
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
```
## Setting up the application
Access the webui at `<your-ip>:443`, for more information check out [Nextcloud][appurl].
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`.
* container version number
`docker inspect -f '{{ index .Config.Labels "build_version" }}' nextcloud`
* image version number
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/nextcloud`
## Versions
+ **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.
+1 -1
View File
@@ -20,7 +20,7 @@ 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;
+1
View File
@@ -0,0 +1 @@
*/15 * * * * s6-setuidgid abc php7 -f /config/www/nextcloud/cron.php
+5 -2
View File
@@ -1,5 +1,8 @@
#!/usr/bin/with-contenv bash
# permissions
chown abc:abc /config /data
chown -R abc:abc /var/lib/nginx
chown abc:abc \
/config \
/data
chown -R abc:abc \
/var/lib/nginx
+15 -9
View File
@@ -1,14 +1,20 @@
#!/usr/bin/with-contenv bash
mkdir -p "${WWW_ROOT}"
chown abc:abc "${WWW_ROOT}"
# create folders
mkdir -p \
"${NEXTCLOUD_PATH}"
# install app
if [ ! -e "${NEXTCLOUD_PATH}/index.php" ]; then
curl -o /tmp/nextcloud.zip -L \
https://download.nextcloud.com/server/releases/nextcloud-"${NEXTCLOUD_VER}".zip
cd /tmp || true
unzip nextcloud.zip
mv /tmp/nextcloud "${NEXTCLOUD_PATH}"
rm -f /tmp/nextcloud.zip
chown abc:abc -R "${NEXTCLOUD_PATH}"
curl -o /tmp/nextcloud.tar.bz2 -L \
https://download.nextcloud.com/server/releases/nextcloud-"${NEXTCLOUD_VER}".tar.bz2
tar xf /tmp/nextcloud.tar.bz2 -C \
"${NEXTCLOUD_PATH}" --strip-components=1
rm -f \
/tmp/nextcloud.tar.bz2
chown abc:abc -R \
"${NEXTCLOUD_PATH}"
fi
# set cronjob
crontab /defaults/nextcloud
+6 -2
View File
@@ -1,5 +1,9 @@
#!/usr/bin/with-contenv bash
[[ ! -f /config/www/nextcloud/config/config.php ]] && cp /defaults/config.php /config/www/nextcloud/config/config.php
# copy config
[[ ! -f /config/www/nextcloud/config/config.php ]] && \
cp /defaults/config.php /config/www/nextcloud/config/config.php
chown abc:abc /config/www/nextcloud/config/config.php
# permissions
chown abc:abc \
/config/www/nextcloud/config/config.php
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
/usr/sbin/crond -f -S -l 0 -c /etc/crontabs