Initial setup

This commit is contained in:
Sameer Rahmani 2023-07-16 18:51:21 +01:00
parent b320fe0496
commit 7acbd71876
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
5 changed files with 33 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM scratch
COPY --from=lscr.io/linuxserver/openssh-server:latest / /
RUN apk add --no-cache --upgrade git lighthttpd tor \
&& mkdir -p /repo && cd /repo && git init . --bare \
&& mkdir -p /var/lib/tor/git \
&& mkdir -p /var/lib/tor/gitweb \
COPY /root /
COPY
CMD ["tor", "--runasdaemon 0"]
ENTRYPOINT ["/init"]

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
TAG=$(git describ)
build:
docker build -t lxsameer/hephaestus:$(TAG) .
push:
docker push lxsameer/hephaestus:$(TAG)
all: build push

View File

@ -0,0 +1,3 @@
#!/command/execlineb -P
export GITWEB_PROJECTROOT=/repo
git-instaweb -b /bin/true -l

View File

@ -0,0 +1 @@
longrun

7
root/etc/tor/torrc Normal file
View File

@ -0,0 +1,7 @@
HiddenServiceDir /var/lib/tor/git/
HiddenServicePort 22 127.0.0.1:22
HiddenServiceAuthorizeClient stealth git
HiddenServiceDir /var/lib/tor/gitweb/
HiddenServicePort 80 127.0.0.1:1234
HiddenServiceAuthorizeClient stealth gitweb