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/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"> |