Initial setup
This commit is contained in:
parent
b320fe0496
commit
7acbd71876
|
@ -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"]
|
|
@ -0,0 +1,9 @@
|
|||
TAG=$(git describ)
|
||||
|
||||
build:
|
||||
docker build -t lxsameer/hephaestus:$(TAG) .
|
||||
|
||||
push:
|
||||
docker push lxsameer/hephaestus:$(TAG)
|
||||
|
||||
all: build push
|
|
@ -0,0 +1,3 @@
|
|||
#!/command/execlineb -P
|
||||
export GITWEB_PROJECTROOT=/repo
|
||||
git-instaweb -b /bin/true -l
|
|
@ -0,0 +1 @@
|
|||
longrun
|
|
@ -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
|
Loading…
Reference in New Issue