mirror of
https://github.com/Dodelidoo-Labs/sonobarr.git
synced 2025-12-23 22:17:45 -05:00
Adds a contributing guide with instructions for setting up a local development environment using Docker. Also creates a changelog to track notable changes. ### Added - Contributing guide for local development setup. - Changelog file.
1.5 KiB
1.5 KiB
Contributing
- Clone the repository.
- Checkout the
developbranch:git checkout develop. - Create a
docker-compose.override.ymlwith the following contents:services: sonobarr: build: context: . dockerfile: Dockerfile network: host image: sonobarr-local volumes: - ./config:/sonobarr/config - /etc/localtime:/etc/localtime:ro - ./src:/sonobarr/src #ports: # - "5000:5000" networks: npm_proxy: ipv4_address: 192.168.97.23 #change as you need networks: npm_proxy: external: true - Build the image with
sudo docker compose up -d- later this will re-use the local image. - Make code changes in
src/or other required files. - Test the changes by restarting the docker image
sudo docker compose down && sudo docker compose up -dand clearing cache in browser. - Once ready to commit, make sure the build still works as well
sudo docker compose down -v --remove-orphans && sudo docker system prune -a --volumes -f && sudo docker compose up -d. - Commit your work to the
developbranch.
Always test your changes with at least two accounts - admin and a common user - in the app, in at least two distinct browser builds (such as safari and chrome, for example).
**Remember that if you made changes affecting config (that is, database or configuration) you have to delete the ./config folder before rebuilding or restarting the app.