Skip to content

lcalaresu/nextcloud-dev

This branch is 23 commits behind icewind1991/nextcloud-dev:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

644d2ac · Feb 15, 2017
Feb 2, 2017
Feb 15, 2017
Aug 23, 2014
Sep 17, 2015
Feb 15, 2017
Aug 26, 2015
Sep 6, 2016

Repository files navigation

docker-nextcloud-dev

Docker image for [NextCloud][] for development

This image pulls the NextCloud source from the host filesystem while maintaining a seperate config and data directory which makes it easy to test your local code in a clean NextCloud instance.

The build instructions are tracked on [GitHub][this.project_github_url]. Automated builds are hosted on [Docker Hub][this.project_docker_hub_url].

Getting the image

You have two options to get the image:

  1. Build it yourself with make build.
  2. Download it via docker pull icewind1991/nextcloud-dev ([automated build][this.project_docker_hub_url]).

NextCloud up and running

docker run --privileged -d -p 8123:80 -v /srv/http/owncloud:/owncloud-shared icewind1991/owncloud-dev

Replace /srv/http/owncloud with the location of the NextCloud source

ncserver command

Edit misc/ncserver with the location of the NextCloud source and copy or symlink it to somewhere without your $PATH

Database

You can specify the database backend to be used by providing it as argument to the ncserver command. The following database backends are supported sqlite (default), mysql, pgsql and oci.

ncserver mysql

For any database backends besides sqlite a seperate container will be started for the database.

PHP version

You can specificy php version 5 (5.6) or 7 by passing it as seccond argument to ncserver (defaults to 5)

ncserver mysql 7

Blackfire integration

You can enable blackfire.io integration by defining BLACKFIRE_SERVER_ID and BLACKFIRE_SERVER_TOKEN as enviroment variables or starting a "blackfire" container beforehand.

See https://blackfire.io/docs/integrations/docker#running-the-agent for more information about using the blackfire agent with docker

Current blackfire only works with php5

nctests

misc/nctests starts a new owncloud server in a container and executes the php test suite on it.

nctests takes the same arguments for database and php version

It expects ncserver to be located in $PATH

License

This project is distributed under [GNU Affero General Public License, Version 3][AGPLv3]. [NextCloud]: https://nextcloud.com/ [AGPLv3]: https://github.com/nextcloud/server/blob/master/COPYING-AGPL [this.project_docker_hub_url]: https://registry.hub.docker.com/u/icewind1991/nextcloud-dev/ [this.project_github_url]: https://github.com/icewind1991/nextcloud-dev

About

Dev docker image for nextCloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 90.1%
  • PHP 9.9%