All-in-one Git hosting container
git clone git://git.janzachar.dev/git-serv.git
0#!/bin/sh12set -eu34die() {5 echo "$@"6 exit 17}89[ ! -d "/srv/config/" ] && die "You should mount your config at '/srv/config/'!"10[ ! -d "/srv/ssh/" ] && die "You should mount your ssh keys at '/srv/ssh/'!"11[ ! -d "/srv/repos/" ] && die "You should mount your repos at '/srv/repos/'!"121314for file in init/*;15do16 echo "Executing: '$file'..."17 "./$file"18done1920/usr/sbin/sshd21git daemon \22 --reuseaddr \23 --base-path=/srv/repos \24 --export-all \25 --verbose \26 --listen=0.0.0.0 \27 /srv/repos &2829lighttpd -f /srv/config/lighttpd.conf3031# Wait indefinitely32tail -f /dev/null33