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.tmpl (f2d0ea37251827eed0f8c8622970f90a167febab) (941B) (mode 100644) [raw]
FROM fedora:25
MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro>

EXPOSE 80
EXPOSE 443
EXPOSE 22
EXPOSE 9418

COPY rg.sh /

CMD ["/rg.sh"]

RUN dnf -y upgrade --best --allowerasing; echo @@VER@@
RUN dnf -y install http://kernel.embedromix.ro/dinorepo-0.0.11-1.noarch.rpm
RUN dnf -y install psmisc procps-ng sendmail php-opcache qrencode openssh-server
RUN dnf -y --disablerepo=* --enablerepo dinorepo clean all

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
RUN grep -q ^apache ${dir}/etc/mail/trusted-users || echo "apache" >> /etc/mail/trusted-users

RUN dnf -y install rocketgit

# Pay attention! Volumes comes after we populate the folders!
VOLUME /var/lib/rocketgit
VOLUME /home/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