From 6c233f6dd62176ea9477f0241a8ca8e2fbca80f0 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 12 Mar 2024 04:08:28 -0400 Subject: cgit: Display version numbers in cgit page footer Signed-off-by: Malfurious --- cgit/Dockerfile | 3 +++ cgit/cgitrc | 3 +-- docker-compose.yml | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cgit/Dockerfile b/cgit/Dockerfile index cb76fa9..28891c7 100644 --- a/cgit/Dockerfile +++ b/cgit/Dockerfile @@ -1,6 +1,7 @@ # https://git.zx2c4.com/cgit/ FROM alpine +ARG NORMALMODE_VERSION RUN apk --no-cache upgrade RUN apk --no-cache add apache2 cgit @@ -9,5 +10,7 @@ COPY httpd.conf /etc/apache2/ COPY cgitrc /etc/ COPY logo.png /usr/share/normalmode/ +RUN echo "
$(apk version cgit | awk '/cgit/{print $1}') | $NORMALMODE_VERSION
" >/footer + EXPOSE 80 CMD ["/usr/sbin/httpd", "-DFOREGROUND"] diff --git a/cgit/cgitrc b/cgit/cgitrc index c4304a9..c5a09f3 100644 --- a/cgit/cgitrc +++ b/cgit/cgitrc @@ -1,11 +1,10 @@ # cgit config # see cgitrc(5) for details -# -# possible todos: header, footer css=/cgit.css logo=/logo.png logo-link=/ +footer=/footer root-title=NormalMode.org Repositories root-desc=Public repositories hosted on normalmode.org diff --git a/docker-compose.yml b/docker-compose.yml index c15518b..0593bf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,10 @@ services: - "22:22" cgit: - build: "cgit" + build: + context: "cgit" + args: + NORMALMODE_VERSION: "normalmode v0.2.0" restart: "always" volumes: - "data:/repositories:ro" -- cgit v1.2.3