# alpine-cgit **Repository Path**: tianakack/alpine-cgit ## Basic Information - **Project Name**: alpine-cgit - **Description**: A docker image based on alpine for Cgit-Lighttpd - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-11-19 - **Last Updated**: 2022-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # alpine-cgit A docker image based on alpine for Cgit-Lighttpd --- Reference documents: - [Lighttpd - Alpine Linux](https://wiki.alpinelinux.org/wiki/Lighttpd) - [Cgit - Alpine Linux](https://wiki.alpinelinux.org/wiki/Cgit) --- Example for `docker run`: ``` docker run -d -p 12345:80 -v /srv/repositories/:/srv/repositories/ alpine-cgit ``` --- The `scan-path` for `cgit.cgi` is: ``` scan-path=/srv/repositories/ ``` --- You can clone a git project in the `/srv/repositories/`, such as: ``` tian@hello-tian:~$ mkdir -p /srv/repositories/ tian@hello-tian:~$ cd /srv/repositories/ tian@hello-tian:/srv/repositories/$ git clone --mirror git://busybox.net/busybox.git ``` --- The access URL in a web-browser is such as: ``` http://127.0.0.1:12345/git/ ``` --- You can add a `cgitrc` file in git project dir in your `/srv/repositories/`, such as: ``` desc=BusyBox: The Swiss Army Knife of Embedded Linux clone-url=git://busybox.net/busybox.git owner= ```