From 4f089f6f7a1205a94245fdb5c4f7796427854f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 16 Apr 2021 13:17:58 -0500 Subject: [README.md]: update --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3b8aaa0..5031085 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ $ docker pull rusian/gitolite-cgit 2. Run the image with provided environment: ```console -$ docker run -e SSH_KEY="$(cat ~/.ssh/id_rsa.pub)" -e SSH_KEY_NAME="$(whoami)" -p 22:22 -p 80:80 -p 9418:9418 -v repo:/var/lib/git/ rusian/gitolite-cgit +$ docker run -e SSH_KEY="$(cat ~/.ssh/id_ed25519.pub)" -e SSH_KEY_NAME="$(whoami)" -p 22:22 -p 80:80 -p 9418:9418 -v repo:/var/lib/git/ rusian/gitolite-cgit ``` ### Environment @@ -26,6 +26,9 @@ $ docker run -e SSH_KEY="$(cat ~/.ssh/id_rsa.pub)" -e SSH_KEY_NAME="$(whoami)" - - `SSH_KEY_NAME`: Name of gitolite admin - `CGIT_CLONE_PREFIX`: cgit clone prefix to display on each repository. For example: `https://git.example.com`, the clone URL should be: `ssh://git@example.com` - `CGIT_ROOT_TITLE`: Text printed as heading on the repository index page. Default value: "Git Repository Browser". +- `CGIT_DESC`: Add description to cgit +- `CGIT_SNAPSHOT`: Snapshot tarball. + ### Exposed ports - Port 22: for SSH clone @@ -67,15 +70,18 @@ SSH_KEY_NAME= # # Cgit options # -CGIT_CLONE_PREFIX= CGIT_ROOT_TITLE=Git Repository Browser +CGIT_DESC=a fast webinterface for the git dscm +CGIT_CLONE_PREFIX=http:// ssh://git@ + +CGIT_SNAPSHOT=tar.gz tar.bz2 tar.xz ``` For convience, I create a script for user who use the public key and name from the host running Docker: ```bash # change ssh_key, ssh_key_name to reflect your current setup -SSH_KEY=$(cat ~/.ssh/id_rsa.pub) +SSH_KEY=$(cat ~/.ssh/id_ed25519.pub) SSH_KEY_NAME=$(whoami) sed -i.bak \ @@ -144,7 +150,7 @@ volumes: ## Build docker image ```console -$ git clone https://git.sr.ht/~heckyel/docker-gitolite-cgit +$ git clone https://git.sr.ht/~heckyel/gitolite-cgit-docker ``` ```console -- cgit v1.2.3