From 28c2c2bbbbbda03aed9a29224302283cc4e86ab3 Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Mon, 10 Nov 2025 10:37:40 +0100 Subject: Renamed project to gitfish. Much nicer than git-server that is actually more misleading --- Dockerfile | 11 ++++++----- README.md | 10 +++++----- src/banner | 6 ++++++ src/env | 1 + src/init | 11 ++--------- 5 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 src/banner diff --git a/Dockerfile b/Dockerfile index 2996f89..5cb9232 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ RUN chmod 755 /usr/local/bin/init RUN chmod 755 /usr/local/bin/git-run COPY src/version /usr/local/bin/ +COPY src/banner /usr/local/bin/ ENTRYPOINT ["/usr/local/bin/init"] @@ -30,9 +31,9 @@ ARG APP_VERSION LABEL org.opencontainers.image.licenses="GPL-3.0-or-later" LABEL org.opencontainers.image.authors="Matthias Jaros" LABEL org.opencontainers.image.version="${APP_VERSION}" -LABEL org.opencontainers.image.source="https://github.com/jarlucmat/git-server" -LABEL org.opencontainers.image.url="https://github.com/jarlucmat/git-server" -LABEL org.opencontainers.image.title="git-server" +LABEL org.opencontainers.image.source="https://github.com/jarlucmat/gitfish" +LABEL org.opencontainers.image.url="https://github.com/jarlucmat/gitfish" +LABEL org.opencontainers.image.title="gitfish" LABEL org.opencontainers.image.description="A minimal, secure Git server using SSH and Fish." -LABEL org.opencontainers.image.documentation="/usr/share/doc/git-server/LICENSE" -COPY LICENSE /usr/share/doc/git-server/LICENSE +LABEL org.opencontainers.image.documentation="/usr/share/doc/gitfish/LICENSE" +COPY LICENSE /usr/share/doc/gitfish/LICENSE diff --git a/README.md b/README.md index 824b2a2..1a98681 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# git-server +# Gitfish -Welcome to **git-server** — a simple, fast, memory-friendly, and secure server for your Git repositories. +Welcome to **gitfish** — a simple, fast, memory-friendly, and secure GIT-over-SSH server for your repositories. The goal of this project is to provide a **minimal Git server** with no unnecessary features or management overhead. It’s designed for everyone who doesn’t need or want a fancy GUI or advanced functionality beyond the essentials. @@ -38,7 +38,7 @@ This server applies multiple hardening and sandboxing measures, such as: ### Command Line ```sh -docker run --rm -p "2222:22" jarlucmat/git-server -u "user1:ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbm +docker run --rm -p "2222:22" jarlucmat/gitfish -u "user1:ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbm lzdHAyNTYAAABBBPsl91WPAT8aWwZ6y5WAfXU9PoHzxJ3YG9uFgSmlGQr2HwV+gL/XaTBJ4Brj+pa+R7tfYEBMi+7Navx/ZsEmr9E= mj@xps15" -r "/repo1.git;user1:w" ``` @@ -46,8 +46,8 @@ lzdHAyNTYAAABBBPsl91WPAT8aWwZ6y5WAfXU9PoHzxJ3YG9uFgSmlGQr2HwV+gL/XaTBJ4Brj+pa+R7 Docker Compose: ```yaml services: - git-server: - image: jarlucmat/git-server + gitfish: + image: jarlucmat/gitfish ports: - "2222:22" environment: diff --git a/src/banner b/src/banner new file mode 100644 index 0000000..8b92475 --- /dev/null +++ b/src/banner @@ -0,0 +1,6 @@ + _ _ __ _ _ + __ _(_) |_ / _(_)___| |__ + / _` | | __| |_| / __| '_ \ +| (_| | | |_| _| \__ \ | | | + \__, |_|\__|_| |_|___/_| |_| + |___/ \ No newline at end of file diff --git a/src/env b/src/env index d7d4a23..d4b3073 100644 --- a/src/env +++ b/src/env @@ -7,3 +7,4 @@ set _GIT_SUDO_GROUP gitsudo set _LOG /var/log/git-run set _PERMISSIONS r w set _VERSION (cat (status dirname)/version) +set _BANNER (cat (status dirname)/banner | string collect) diff --git a/src/init b/src/init index 12d4825..64564da 100755 --- a/src/init +++ b/src/init @@ -141,17 +141,10 @@ end function showBanner echo - echo ' - _ _ - __ _(_) |_ ___ ___ _ ____ _____ _ __ - / _` | | __|____/ __|/ _ \ '__\ \ / / _ \ '__| -| (_| | | ||_____\__ \ __/ | \ V / __/ | - \__, |_|\__| |___/\___|_| \_/ \___|_| - |___/ -' + echo $_BANNER echo echo Copyright Matthias Jaros 2025 - echo This software is licensed under GPLv3. See /usr/share/doc/git-server/LICENSE + echo This software is licensed under GPLv3. See /usr/share/doc/gitfish/LICENSE echo end -- cgit v1.3.1