Git Product home page Git Product logo

nextcloud-dev's Introduction

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

nextcloud-dev's People

Contributors

icewind1991 avatar ypid avatar silvio avatar jchaney avatar johannweging avatar khazrak avatar

Watchers

James Cloos avatar Julius Härtl avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.