I want to start with app development and am currently trying to set up the development environment.
- The official docs tell me that I should set up everything including nextcloud core and an apache server on my local machine. I don’t want to do that.
- The workshop of sleepypioneer is quite old, but telling me to look at David-development’s docker-dev.
- David-Development’s docker dev is basically exactly what I am looking for and even kind of recent, but it’s using nextcloud 14 and nodesource 8. If I change that to nextcloud 18 and nodesource 10 and try to run it for the ‘mail’ app, I get around 200 warnings and the following error:
app_1 | npm ERR! code 128 app_1 | npm ERR! Command failed: git clone --depth=1 -q -b 0.2.1 https://github.com/owncloud/davclient.js.git /root/.npm/_cacache/tmp/git-clone-929ff0cd app_1 | npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-929ff0cd': Permission denied app_1 | npm ERR! app_1 | app_1 | npm ERR! A complete log of this run can be found in: app_1 | npm ERR! /root/.npm/_logs/2020-02-27T03_08_37_329Z-debug.log app_1 | make: *** [Makefile:36: install-npm-deps-dev] Error 1
- This video series is pretty cool and it’s using docker, but it’s relying on editing code remotely via ftp limiting my freedom in choosing an IDE. It also manually installs software in an interactive docker session and needs to run a command after every container restart.
Summing up, there is one solution where I have to install everything locally, one solution which goes in the right direction, but has some serious limitations and one solution which sounds perfect but doesn’t work.
Why is it so hard? Why isn’t there an automated docker dev setup explained in the official docs to make getting started easy? Does anybody have advice for me regarding a working setup without the need to install a bunch of software on my machine?