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.
Commit 36653f824b0c2f7159a0cdbfa50e38aea714a0b5

Docker fixes
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-10-03 16:12
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-10-03 16:12
Parent(s): 03e1ba61bdcac0514977b79c0b38449db29aa7a5
Signing key:
Tree: 7d5231a2e72d1746c6caedf8cbc62671bf5d9827
File Lines added Lines deleted
docker/Dockerfile-rocketgit.tmpl 8 6
docker/README 2 2
docker/TODO 2 2
docker/build.sh 3 3
docker/rg.sh 10 0
root/themes/default/download.html 2 1
File docker/Dockerfile-rocketgit.tmpl changed (mode: 100644) (index fcedac7..ff4efd7)
1 FROM fedora:23
1 FROM fedora:24
2 2 MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro> MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro>
3 3
4 VOLUME /var/lib/rocketgit
5 VOLUME /home/rocketgit
6
7 4 EXPOSE 80 EXPOSE 80
8 5 EXPOSE 443 EXPOSE 443
9 6 EXPOSE 22 EXPOSE 22
 
... ... CMD ["/rg.sh"]
15 12
16 13 RUN dnf -y upgrade --best --allowerasing; echo @@VER@@ RUN dnf -y upgrade --best --allowerasing; echo @@VER@@
17 14 RUN dnf -y install http://kernel.embedromix.ro/dinorepo-0.0.10-1.noarch.rpm RUN dnf -y install http://kernel.embedromix.ro/dinorepo-0.0.10-1.noarch.rpm
18 RUN dnf -y install psmisc procps-ng sendmail php-opcache qrencode
15 RUN dnf -y install psmisc procps-ng sendmail php-opcache qrencode openssh-server
19 16 RUN dnf -y --disablerepo=* --enablerepo dinorepo clean all RUN dnf -y --disablerepo=* --enablerepo dinorepo clean all
20 RUN dnf -y install rocketgit-@@VER@@
21 17
22 18 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.d/10-opcache.ini
23 19 RUN sed -i -e 's|;opcache.enable_cli=.*|opcache.enable_cli=1|' /etc/php-zts.d/10-opcache.ini RUN sed -i -e 's|;opcache.enable_cli=.*|opcache.enable_cli=1|' /etc/php-zts.d/10-opcache.ini
24 20 RUN grep -q ^rocketgit ${dir}/etc/mail/trusted-users || echo "rocketgit" >> /etc/mail/trusted-users RUN grep -q ^rocketgit ${dir}/etc/mail/trusted-users || echo "rocketgit" >> /etc/mail/trusted-users
25 21 RUN grep -q ^apache ${dir}/etc/mail/trusted-users || echo "apache" >> /etc/mail/trusted-users RUN grep -q ^apache ${dir}/etc/mail/trusted-users || echo "apache" >> /etc/mail/trusted-users
26 22
23 RUN dnf -y install rocketgit
24
25 # Pay attention! Volumes comes after we populate the folders!
26 VOLUME /var/lib/rocketgit
27 VOLUME /home/rocketgit
28
File docker/README changed (mode: 100644) (index b9db7f7..e645677)
... ... docker run -d -P --name rg --link rp rocketgit/rocketgit
6 6
7 7
8 8 == me == == me ==
9 docker run -d -P --name rp rocketgit-postgresql
9 docker run -d -P --name rp rocketgit/rocketgit-postgresql
10 10 docker logs rp docker logs rp
11 11
12 docker run -d -P --name rg --link rp rocketgit
12 docker run -d -P --name rg --link rp rocketgit/rocketgit
13 13 docker rm rp docker rm rp
14 14
15 15 docker exec -it rg bash docker exec -it rg bash
File docker/TODO changed (mode: 100644) (index 26209f5..a68ed1f)
1 [ ] Test if xinetd is started
2 1 [ ] Fix rocketgit link [ ] Fix rocketgit link
3 2 [ ] Specify docker build http://... [ ] Specify docker build http://...
4 [ ]
3 [ ] rg.sh: No test for openssh!
4 [ ]
File docker/build.sh changed (mode: 100755) (index 47d1146..7dd7bd2)
... ... set -e
5 5
6 6 . ../duilder.conf . ../duilder.conf
7 7
8 RP_VER="20160711"
8 RP_VER="20160928"
9 9 sed -e "s|@@RP_VER@@|${RP_VER}|" Dockerfile-postgresql.tmpl > Dockerfile-postgresql sed -e "s|@@RP_VER@@|${RP_VER}|" Dockerfile-postgresql.tmpl > Dockerfile-postgresql
10 10 if [ "`docker images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then if [ "`docker images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then
11 11 echo "Building rocketgit-postgresql (${RP_VER})..." echo "Building rocketgit-postgresql (${RP_VER})..."
 
... ... if [ "`docker images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then
13 13 --tag="rocketgit/rocketgit-postgresql:${RP_VER}" \ --tag="rocketgit/rocketgit-postgresql:${RP_VER}" \
14 14 -f Dockerfile-postgresql \ -f Dockerfile-postgresql \
15 15 . .
16 docker tag -f "rocketgit/rocketgit-postgresql:${RP_VER}" \
16 docker tag "rocketgit/rocketgit-postgresql:${RP_VER}" \
17 17 "rocketgit/rocketgit-postgresql:latest" "rocketgit/rocketgit-postgresql:latest"
18 18 fi fi
19 19
 
... ... docker build \
23 23 --tag="rocketgit/rocketgit:${VER}" \ --tag="rocketgit/rocketgit:${VER}" \
24 24 -f Dockerfile-rocketgit \ -f Dockerfile-rocketgit \
25 25 . .
26 docker tag -f "rocketgit/rocketgit:${VER}" "rocketgit/rocketgit:latest"
26 docker tag "rocketgit/rocketgit:${VER}" "rocketgit/rocketgit:latest"
File docker/rg.sh changed (mode: 100755) (index 3916451..2871280)
5 5 sed -i -e "s|\$rg_sql = .*$|\$rg_sql = 'host=${RP_PORT_5432_TCP_ADDR} port=${RP_PORT_5432_TCP_PORT} user=rocketgit dbname=rocketgit connect_timeout=10';|" /etc/rocketgit/config.php sed -i -e "s|\$rg_sql = .*$|\$rg_sql = 'host=${RP_PORT_5432_TCP_ADDR} port=${RP_PORT_5432_TCP_PORT} user=rocketgit dbname=rocketgit connect_timeout=10';|" /etc/rocketgit/config.php
6 6
7 7 while [ 1 ]; do while [ 1 ]; do
8 # rocketgit-fpm will be started automatically!
9 if [ "`ps ax|grep -v grep|grep \"pool rocketgit\"`" = "" ]; then
10 echo "Running rocketgit-fpm..."
11 /usr/sbin/php-fpm --fpm-config /etc/rocketgit/php-fpm.conf \
12 --daemonize
13 if [ "${?}" != "0" ]; then
14 echo "ERROR: could not start rocketgit-fpm!"
15 fi
16 fi
17
8 18 if [ "`ps ax|grep -v grep|grep http`" = "" ]; then if [ "`ps ax|grep -v grep|grep http`" = "" ]; then
9 19 echo "Running httpd..." echo "Running httpd..."
10 20 httpd httpd
File root/themes/default/download.html changed (mode: 100644) (index 3b7ddc0..07b829b)
45 45 docker run -d -P --name rg --link rp rocketgit/rocketgit docker run -d -P --name rg --link rp rocketgit/rocketgit
46 46 </div> </div>
47 47 Then, follow the install section from the README file from Then, follow the install section from the README file from
48 /usr/share/doc/rocketgit*.
48 /usr/share/doc/rocketgit*.<br />
49 To find the ports to connect, use 'docker ps' command.
49 50 </div> </div>
50 51
51 52 <div class="island"> <div class="island">
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