commit 90e5b03f2c4acdb884fbacdceea3afe4434a5a00
parent d20a70b96feb7a196ba543808146ba61cab539a4
Author: FIGBERT <figbert@figbert.com>
Date: Tue, 31 May 2022 23:37:10 -0700
Add git-daemon
Diffstat:
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -60,3 +60,11 @@ Generates and serves static HTML pages from a maildir using `crabmail`,
Requirements:
- `mbsync` config file mounted at `/mail/mbsyncrc`
- `crabmail` config file mounted at `/mail/crabmail.conf`
+
+## git-daemon
+
+The `CMD` value is passed to `git daemon`.
+
+By default this is `--base-path=/git`, which expects a directory mounted
+at `/git` with repositories as subdirectories. Enables cloning of repos
+with the magic `git-daemon-export-ok` file. No push access.
diff --git a/git-daemon b/git-daemon
@@ -0,0 +1,5 @@
+FROM alpine:latest
+RUN apk --no-cache add git-daemon
+EXPOSE 9418
+ENTRYPOINT ["git", "daemon"]
+CMD ["--base-path=/git"]