Sign inSign up

h3nc4/cgit-slim

By h3nc4

Updated 2 days ago

A scratch-built container featuring cgit, nginx, and a git mirror synchronization daemon.

Image
0

7.4K

h3nc4/cgit-slim repository overview

cgit slim

A scratch-built container featuring cgit, nginx, and a git mirror synchronization daemon.

Usage

Create a repos.list file containing repository URLs:

https://git.zx2c4.com/cgit.git
[email protected]:you/your-private-repo.git

Run the container:

docker run -d \
  -p 8080:80 \
  -v $(pwd)/repos.list:/etc/cgit/repos.list:ro \
  -v git-data:/var/lib/git \
  h3nc4/cgit-slim

Configuration

Environment Variables
VariableDefaultDescription
SYNC_INTERVAL3600Synchronization interval in seconds.
REPO_LIST/etc/cgit/repos.listPath to the repository list file.
GIT_ROOT/var/lib/gitStorage path for git repositories.
Volumes
PathDescription
/var/lib/gitPersistent storage for mirrored repositories.
/etc/cgit/repos.listInput file listing repositories to mirror.
/etc/cgitrcOptional override for cgit configuration.
/run/.sshOptional directory for SSH keys.
SSH Access

For private repositories using SSH, mount your keys under /run/.ssh:

-v /path/to/ssh-keys/id_ed25519:/run/.ssh/id_ed25519:ro \

Ensure the directory is readable by UID 1000.

License

cgit slim is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

cgit slim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with cgit slim. If not, see https://www.gnu.org/licenses/.

Tag summary

Content type

Image

Digest

sha256:ee1f9ae6c

Size

53.5 MB

Last updated

2 days ago

docker pull h3nc4/cgit-slim