Nextcloud-docker-dev and app contributing

Hello

I’m working on Windows.
I have setup my nextcloud-docker-dev with Docker desktop & WSL2, per instructions of the tutorial.

Starting from there, the tutorial misses to explain how we go from code modification in our clone to deployment for tests.

Since there is a volume
- '${REPO_PATH_SERVER}/apps-extra:/var/www/html/apps-extra'

Folder is declared as an app path in the config file.

  1. Can I clone my code there or should I somehow build and output folder ?
  2. How do I declare the app for loading ?

Hey,

The general idea is that you clone the development repo and set it up (done so far AFAIK).

There are 2 folders intended for putting your app data. First, there is a global folder apps_extra in data. This is shared across all instances. Second, you have a folder within the corresponding server instance (e.g. inside workspace/server). Which one you chose depends on your app (does it support all NC versions or just one?).

You typically checkout the app directly in the corresponding folder. There you set up stuff and work as expected. You can add multiple worktrees if you need to use different branches for different app versions.

Chris

Aah, I forgot: you just have to enable the app to make all known migrations be carried out and the app to be present.

I didn’t see it first because my setup was bad. I cloned under windows, then tried to symlink in app-extras. And Symlinks are not visible to docker.

Instead, deploying VSCode in WSL allows me to get the full repo in apps-extra as expected. :+1: