dockerfiles
dockerfiles copied to clipboard
How to set `side-by-side-diffs=1` in `cgitrc`?
How to set side-by-side-diffs=1 in cgitrc?Or, can you set it as the default config in the next released Docker image to https://hub.docker.com/r/clearlinux/cgit?
unasnwered issues are criminal :)
I was able to just figure it out, so here's how you will do it,
use this as the run command:
docker run -d \
-p 8800:80 \
-v /home/shayan/cgit/cgitrc:/etc/cgitrc \
-v ~/dev/dev/:/var/www/cgit \
-v ~/cgit:/usr/share/cgit/ \
--name local_cgit \
--restart unless-stopped \
clearlinux/cgit
notice the /home/shayan/cgit/cgitrc:/etc/cgitrc this will map your cgitrc file into the container and load it. Remember to restart your container if you make any changes, recreating is not required. This will enable or disable any option listed here: https://linux.die.net/man/5/cgitrc
You can also put any custom css files into /usr/share/cgit/ and it will pick it up.