From 214f4bab8b852e9b66d909bc22e5f9119da7dfb5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 29 Dec 2025 18:28:13 +0800 Subject: initial commit --- README | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..c37fae2 --- /dev/null +++ b/README @@ -0,0 +1,44 @@ +CGIT-CADDY CONTAINER + +Build: + podman build -t cgit-caddy . + +Run (first time or after changes): + ./start_container.sh + +Run (manual): + podman run -d \ + --name cgit \ + --network public-routed \ + --ip 10.89.0.2 \ + --cap-add=NET_ADMIN \ + --env-file config.env \ + -v cgit_data:/data \ + -v /git:/git \ + localhost/cgit-caddy + + sleep 2 + podman exec cgit ip addr add 37.27.166.242/32 dev eth0 + ip route add 37.27.166.242/32 via 10.89.0.2 + +Restart: + podman restart cgit + +Stop: + podman stop cgit && podman rm cgit && ip route del 37.27.166.242/32 + +Cleanup (remove everything): + podman stop cgit + podman rm cgit + podman volume rm cgit_data + ip route del 37.27.166.242/32 + podman network rm public-routed # only if no other containers use it + +Logs: + podman logs -f cgit + +Shell: + podman exec -it cgit sh + +Create repo: + git init --bare /git/myrepo -- cgit v1.2.3