diff options
author | Leonard Kugis <leonard@kug.is> | 2025-09-17 18:50:48 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2025-09-17 18:50:48 +0200 |
commit | b8975e6aa8c0734a779234610c1aa906d183365e (patch) | |
tree | 981117e5af99bfa17aa931073e5cafccb4801bd9 | |
parent | 902fbb872a504a7fc9bbd41c625f98da14cb4af7 (diff) | |
download | cgithub-b8975e6aa8c0734a779234610c1aa906d183365e.tar.gz |
Added README
-rw-r--r-- | README.md | 38 | ||||
-rw-r--r-- | README.url | 1 |
2 files changed, 38 insertions, 1 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..d4d113f --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# cgithub + +A GitHub-like theme for cgit. + +Fork of: [https://www.hackitu.de/cgithub/](https://www.hackitu.de/cgithub/) + +## Installation + +### Build from source + +1. `cd` into source directory where `Dockerfile` resides. +2. Run `docker buildx build --pull -t cgithub:latest .` to build the image and tag it as `cgithub:latest`. +3. Run the image as container: +```bash +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 + +1. `cd` into directory where `docker-compose.yml` resides. +2. Adjust `docker-compose.yml` to your liking. +3. Run `docker compose up -d` to run the container. + +### Run directly + +```bash +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 +``` + +## References + +- [Original guide](https://www.hackitu.de/cgithub/) diff --git a/README.url b/README.url deleted file mode 100644 index 982bec3..0000000 --- a/README.url +++ /dev/null @@ -1 +0,0 @@ -http://www.hackitu.de/cgithub/ |