xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
<root> / docker / Dockerfile-rocketgit-alpine.tmpl (4466bf0db34ddc53dcc4f328a469664e9b119e0b) (868B) (mode 100644) [raw]
FROM alpine:3.6
MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro>

EXPOSE 80
EXPOSE 443
EXPOSE 22
EXPOSE 9418

COPY rg.sh /

CMD ["/rg.sh"]

RUN apk update \
	&& apk add psmisc procps postfix php7-opcache libqrencode openssh-server \
	git php7 shadow bash \
	&& echo @@VER@@

RUN cd /tmp && GIT_CURL_VERBOSE=1 GIT_TRACE=1 \
	git clone https://rocketgit.com/user/catalinux/rocketgit \
	&& cd rocketgit && ./configure && make && make install

RUN sed -i -e 's|;opcache.enable_cli=.*|opcache.enable_cli=1|' /etc/php.d/10-opcache.ini
RUN sed -i -e 's|;opcache.enable_cli=.*|opcache.enable_cli=1|' /etc/php-zts.d/10-opcache.ini
RUN grep -q ^rocketgit ${dir}/etc/mail/trusted-users || echo "rocketgit" >> /etc/mail/trusted-users

# Pay attention! Volumes comes after we populate the folders!
VOLUME /var/lib/rocketgit
VOLUME /home/rocketgit
VOLUME /etc/rocketgit

Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master