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:
- Build it yourself with
- 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
/srv/http/owncloud with the location of the NextCloud source
misc/ncserver with the location of the NextCloud source and copy or symlink it to somewhere without your $PATH
You can specify the database backend to be used by providing it as argument to the
The following database backends are supported
For any database backends besides sqlite a seperate container will be started for the database.
You can specificy php version 5 (5.6) or 7 by passing it as seccond argument to
ncserver (defaults to 5)
ncserver mysql 7
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
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
ncserver to be located in
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