sudo apt install docker-compose
sudo systemctl start docker
sudo usermod -aG docker $USER
Then log out and log back in again.
- Docker for Mac: https://store.docker.com/editions/community/docker-ce-desktop-mac
- Direct download: https://download.docker.com/mac/stable/Docker.dmg
- Docker for Windows: https://store.docker.com/editions/community/docker-ce-desktop-windows
- Install git: https://git-scm.com/download/win
In a terminal, paste and run these commands. :) After starting up the container you will be able to edit the calendar app (which can be found in the apps/calendar folder). Any changes you make will be automatically updated. Just head over to your browser and hit the reload button to see the changes.
git clone https://github.com/David-Development/nextcloud-dev-docker.git
cd nextcloud-dev-docker/apps/
git clone https://github.com/nextcloud/contacts.git
cd ..
docker-compose up --build
git clone https://github.com/David-Development/nextcloud-dev-docker.git --config core.autocrlf=input
cd nextcloud-dev-docker/apps/
git clone https://github.com/nextcloud/contacts.git --config core.autocrlf=input
cd ..
docker-compose up --build
This docker setup allows you to setup a development environment in just a few minutes. It allows you to map the app that you want to work on into the container so that you can use your favorite development tools on your computer.
Just clone the app that you want to work on into the apps folder which can be found in this directory. After that, open the run.sh
which is located in this folder and add the required build commands. There are already a few examples included in the run.sh
file.
docker-compose down -v