cgithub
A GitHub-like theme for cgit.
Fork of: https://www.hackitu.de/cgithub/
Installation
Build from source
cd
into source directory whereDockerfile
resides.- Run
docker buildx build --pull -t cgithub:latest .
to build the image and tag it ascgithub:latest
. - Run the image as container:
docker run --rm \
--read-only -v /media/mnt/vcs/git:/mnt:ro --tmpfs /tmp:size=10%,mode=1777,rw,noatime,noexec,nosuid,nodev \
--user $(id -u www-data):$(getent group git | cut -d: -f3) --security-opt=no-new-privileges:true --cap-drop=all \
--network=host -e APACHE_PORT=8080 --name cgit cgithub:latest
Run as docker compose
cd
into directory wheredocker-compose.yml
resides.- Adjust
docker-compose.yml
to your liking. - Run
docker compose up -d
to run the container.
Run directly
docker run --rm \
--read-only -v /media/mnt/vcs/git:/mnt:ro --tmpfs /tmp:size=10%,mode=1777,rw,noatime,noexec,nosuid,nodev \
--user $(id -u www-data):$(getent group git | cut -d: -f3) --security-opt=no-new-privileges:true --cap-drop=all \
--network=host -e APACHE_PORT=8080 --name cgit lionheart1810/cgithub:latest