juliushaertl / nextcloud-docker-dev

Nextcloud development environment using docker-compose
GNU Affero General Public License v3.0
126 stars 67 forks source link

Simplify for just Nextcloud-App Development #331

Closed Captainpast closed 3 weeks ago

Captainpast commented 1 month ago

According to nextcloud.com/developer and cloud.nextcloud.com/Setting up a development environment you should use this repo also for developing a Nextcloud app, but I think this docker is doing too much:

For develop just a Nextcloud-App, this should be easier, for example:

$ docker run -d -p 8080:80 -v ./.container/www:/var/www/html -v .:/var/www/html/custom_apps/helloworld nextcloud
juliushaertl commented 3 weeks ago

Hi,

thanks for your feedback. You are of course free to use any other development setup, however this one is trying to cover lots of use cases that are there during day to day development work so also giving you lots of options for databases, running multiple stable versions in parallel, object storage. You can also checkout the standalone containers that are similar to your command but with auto setup for Nextcloud server version if not mounted: https://github.com/juliushaertl/nextcloud-docker-dev?tab=readme-ov-file#standalone-containers

The benefit of that over the regular comunity container is that it has development tools that might be helpful during development like xdebug.

juliushaertl commented 3 weeks ago

FYI @DaphneMuller Maybe we need to update the tutorials at some point to rather use the simple version as I can see this is quite some overhead for new devs

DaphneMuller commented 3 weeks ago

I've documented the to do. I'm not sure when we can commit to it in the team. Feel welcome to adjust the files (for all OS systems) and send them to me for publishing and testing if you have some time.

juliushaertl commented 3 weeks ago

Likely won't have time as well, but let's see ;)

DaphneMuller commented 3 weeks ago

okay, we won't forget about it :) it's in the long list for us.