juliusknorr / nextcloud-docker-dev

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

Simplify for just Nextcloud-App Development #331

Closed Captainpast closed 4 months ago

Captainpast commented 4 months 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
juliusknorr commented 4 months 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.

juliusknorr commented 4 months 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 4 months 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.

juliusknorr commented 4 months ago

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

DaphneMuller commented 4 months ago

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