List of commits:
Subject Hash Author Date (UTC)
Docker updates d3e9cd4e358cac2d4018dcf7dc681288445a679f Catalin(ux) M. BOIE 2020-07-31 05:36:08
Admin report improvements b527baab12e2e08998672559b0f33fc6df15e74c Catalin(ux) M. BOIE 2020-07-31 05:35:25
Cosmetic 30c879d625b094a33bd9a2165c67a8a11e802f42 Catalin(ux) M. BOIE 2020-07-31 05:34:19
Builder, worker and web updates for artifacts c82a7143a24ec987e0d98bb58327ef15bc602d0d Catalin(ux) M. BOIE 2020-07-31 05:30:44
Prevent bots to create accounts 3eacd8103e9a039f3f8585a59c27fdff6fd66ca4 Catalin(ux) M. BOIE 2020-07-08 05:25:37
css: Force the footer to the bottom using flex f89dddc9fa6b2c131448996cc51349e00224eea6 Catalin(ux) M. BOIE 2020-07-04 04:15:03
docs: css tweaks d270a286b160bb5de39ade5d99a58fe26e03b2d5 Catalin(ux) M. BOIE 2020-06-30 17:21:02
Improved admin report 9fa82cc2878886c2195cdd3f334dd532b3ea6a22 Catalin(ux) M. BOIE 2020-06-28 10:19:24
First version of artifacts ad6b6c75aab8d485ea45c1d851f23d83587d6931 Catalin(ux) M. BOIE 2020-06-27 13:11:17
Allow adding bugs for public repos + small fixes e67955ce3360c8c003a718e01844b3d8effa74a6 Catalin(ux) M. BOIE 2020-06-25 16:05:54
History updates 4c4aef444bbd1149f2c02b6da620f184aae1eed6 Catalin(ux) M. BOIE 2020-06-16 05:53:14
Allow cron to execute sub-tasks in parallel - we missed stats f65c76714cf349a53f584c8e65d9e89c24a4fa69 Catalin(ux) M. BOIE 2020-06-12 06:50:40
bug: search: fixed the override of some global variables 82e251ea883e50b8d1476530e0268fd5770fbf41 Catalin(ux) M. BOIE 2020-06-10 21:29:03
If a repo is non-existent, we should not try to use the id bcb08f74e21556aa750920335ebec2f965e72f36 Catalin(ux) M. BOIE 2020-06-10 08:05:43
If no activity, average elap is not computed correctly a7d4f0042c912d29f7943e0446820a477f42d6f7 Catalin(ux) M. BOIE 2020-06-09 07:03:21
When a user is requesting an e-mail confirmation operation, ignore if the e-mail was confirmed 62c387ed431d0c46d16e534cc1c954557ee389f7 Catalin(ux) M. BOIE 2020-06-08 06:42:22
Reverse test messed the creation of partition tables; more debugging d820816c2624549e0b0e1634523717cda0b7ba66 Catalin(ux) M. BOIE 2020-06-05 17:33:08
We need to prepare the partition tables before some inserts 07a12d1c79104b4707a9d43463fa9c11a4697293 Catalin(ux) M. BOIE 2020-06-05 15:55:43
.spec updates 5fe0aca1b4a3bfd8c1c8db95409faf512ad09b43 Catalin(ux) M. BOIE 2020-06-04 22:03:57
Switch to Podman (because of Fedora 32) and fix the worker service in the spec file 05b3866cd09b0aa8367d3b5755f45ea7274658de Catalin(ux) M. BOIE 2020-06-04 15:50:41
Commit d3e9cd4e358cac2d4018dcf7dc681288445a679f - Docker updates
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-07-31 05:36
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-07-31 05:36
Parent(s): b527baab12e2e08998672559b0f33fc6df15e74c
Signer:
Signing key:
Signing status: N
Tree: 99dddff746236a406d00422b51c1a805df9296d8
File Lines added Lines deleted
docker/Dockerfile-postgresql.tmpl 6 7
docker/Dockerfile-rocketgit.tmpl 7 8
docker/README 38 38
docker/build.sh 2 1
docker/push.sh 6 4
File docker/Dockerfile-postgresql.tmpl changed (mode: 100644) (index e5ab147..4c0ebb5)
... ... MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro>
3 3
4 4 EXPOSE 5432 EXPOSE 5432
5 5
6 CMD ["/usr/bin/postgres"]
7
6 USER root
8 7 RUN dnf -y --setopt=tsflags=nodocs install postgresql-server psmisc procps-ng glibc-langpack-en RUN dnf -y --setopt=tsflags=nodocs install postgresql-server psmisc procps-ng glibc-langpack-en
9 8
10 9 # Force cache cleaning # Force cache cleaning
 
... ... ENV PGDATA /var/lib/pgsql/data
20 19 RUN ls -l /var/lib/pgsql/data RUN ls -l /var/lib/pgsql/data
21 20 RUN initdb --data-checksums RUN initdb --data-checksums
22 21
23 USER root
24 RUN echo "host all all 0.0.0.0/0 trust" >> /var/lib/pgsql/data/pg_hba.conf
25 RUN echo "listen_addresses='*'" >> /var/lib/pgsql/data/postgresql.conf
26
27 USER postgres
28 22 RUN pg_ctl start -w --timeout 60 \ RUN pg_ctl start -w --timeout 60 \
29 23 && psql --command "CREATE USER rocketgit WITH PASSWORD 'rock'" \ && psql --command "CREATE USER rocketgit WITH PASSWORD 'rock'" \
30 24 && createdb -O rocketgit rocketgit && createdb -O rocketgit rocketgit
31 25
26 RUN echo "host all all 0.0.0.0/0 trust" >> /var/lib/pgsql/data/pg_hba.conf
27 RUN echo "listen_addresses='*'" >> /var/lib/pgsql/data/postgresql.conf
28
32 29 VOLUME /var/lib/pgsql VOLUME /var/lib/pgsql
33 30
31 CMD ["/usr/bin/postgres"]
32
File docker/Dockerfile-rocketgit.tmpl changed (mode: 100644) (index b3014fe..c0a8c09)
... ... COPY rg.sh /
11 11 CMD ["/rg.sh"] CMD ["/rg.sh"]
12 12
13 13 RUN dnf -y --setopt=tsflags=nodocs upgrade --best --allowerasing; echo @@VER@@ RUN dnf -y --setopt=tsflags=nodocs upgrade --best --allowerasing; echo @@VER@@
14 RUN dnf -y --setopt=tsflags=nodocs install http://kernel.embedromix.ro/dinorepo-0.0.12-1.noarch.rpm
15 RUN dnf -y --setopt=tsflags=nodocs install psmisc procps-ng sendmail php-opcache qrencode openssh-server nginx
16 RUN dnf -y --setopt=tsflags=nodocs --disablerepo=* --enablerepo dinorepo clean all
14 RUN dnf -y --setopt=tsflags=nodocs install \
15 http://kernel.embedromix.ro/dinorepo-0.0.12-1.noarch.rpm
16
17 RUN dnf -y --setopt=tsflags=nodocs install psmisc procps-ng sendmail \
18 php-opcache qrencode openssh-server nginx rocketgit
19
20 RUN dnf -y clean all
17 21
18 22 RUN sed -i -e 's|;opcache.enable_cli=.*|opcache.enable_cli=1|' \ RUN sed -i -e 's|;opcache.enable_cli=.*|opcache.enable_cli=1|' \
19 23 /etc/php.d/10-opcache.ini /etc/php.d/10-opcache.ini
 
... ... RUN sed -i -e 's|;opcache.enable_cli=.*|opcache.enable_cli=1|' \
22 26 RUN grep -q ^rocketgit ${dir}/etc/mail/trusted-users \ RUN grep -q ^rocketgit ${dir}/etc/mail/trusted-users \
23 27 || echo "rocketgit" >> /etc/mail/trusted-users || echo "rocketgit" >> /etc/mail/trusted-users
24 28
25 RUN dnf -y --setopt=tsflags=nodocs install rocketgit
26
27 # It is not present by default
28 RUN mkdir /run/php-fpm
29
30 29 # Pay attention! Volumes comes after we populate the folders! # Pay attention! Volumes comes after we populate the folders!
31 30 VOLUME /var/lib/rocketgit VOLUME /var/lib/rocketgit
32 31 VOLUME /home/rocketgit VOLUME /home/rocketgit
File docker/README changed (mode: 100644) (index 5be03af..9c5269e)
1 1 == TODO add to download page? == == TODO add to download page? ==
2 docker pull rocketgit/rocketgit-postgresql
3 docker run -d -P --name rp rocketgit/rocketgit-postgresql
4 docker pull rocketgit/rocketgit
5 docker run -d -P --name rg --link rp rocketgit/rocketgit
2 podman pull rocketgit/rocketgit-postgresql
3 podman run -d -P --name rp rocketgit/rocketgit-postgresql
4 podman pull rocketgit/rocketgit
5 podman run -d -P --name rg rocketgit/rocketgit
6 6
7 7
8 8 == me == == me ==
9 docker run -d -P --name rp rocketgit/rocketgit-postgresql
10 docker run -d -P --name rg --link rp rocketgit/rocketgit
9 podman run -d -P --name rp rocketgit/rocketgit-postgresql
10 podman run -d -P --name rg --link rp rocketgit/rocketgit
11 11
12 docker logs rp
13 docker logs rg
12 podman logs rp
13 podman logs rg
14 14
15 docker rm rp
15 podman rm rp
16 16
17 docker exec -it rg bash
17 podman exec -it rg bash
18 18
19 19 to debug: to debug:
20 docker run -d -P --name rg --link rp \
20 podman run -d -P --name rg --link rp \
21 21 -v /BIG1T/sync1/Dev/rocketgit/inc:/usr/share/rocketgit/inc \ -v /BIG1T/sync1/Dev/rocketgit/inc:/usr/share/rocketgit/inc \
22 22 -v /BIG1T/sync1/Dev/rocketgit/scripts:/usr/share/rocketgit/scripts \ -v /BIG1T/sync1/Dev/rocketgit/scripts:/usr/share/rocketgit/scripts \
23 23 -v /BIG1T/sync1/Dev/rocketgit/hooks:/usr/share/rocketgit/hooks \ -v /BIG1T/sync1/Dev/rocketgit/hooks:/usr/share/rocketgit/hooks \
 
... ... docker run -d -P --name rg --link rp \
26 26
27 27
28 28 == doc == == doc ==
29 docker inspect
30 docker info
31 docker search xxx
32 docker pull fedora
33 docker images
34 docker commit
35 docker push username/image_name
36 docker ps -l
37 docker run -name aaa my_img echo "aaa"
38 docker stop aaa
39 docker rm
40
41 untag: docker rmi rocketgit/rocektgit-postgresql:20160311
42
43 docker tag image_id docker_user_name/image_name:label_for_example_latest
44 docker login --username=rocketgit --email=docker@embedromix.ro
45 docker push rocketgit/rocketgit
29 podman inspect
30 podman info
31 podman search xxx
32 podman pull fedora
33 podman images
34 podman commit
35 podman push username/image_name
36 podman ps -l
37 podman run -name aaa my_img echo "aaa"
38 podman stop aaa
39 podman rm
40
41 untag: podman rmi rocketgit/rocektgit-postgresql:20160311
42
43 podman tag image_id docker_user_name/image_name:label_for_example_latest
44 podman login --username=rocketgit --email=docker@embedromix.ro
45 podman push rocketgit/rocketgit
46 46
47 47 Running an interactive shell: Running an interactive shell:
48 docker run -i -t fedora /bin/bash
49 docker run --interactive=true --tty=true fedora /bin/bash
48 podman run -i -t fedora /bin/bash
49 podman run --interactive=true --tty=true fedora /bin/bash
50 50
51 51 Ctrl-p + Ctrl-q to detach Ctrl-p + Ctrl-q to detach
52 52
53 docker logs aaa
53 podman logs aaa
54 54
55 docker kill aaa
55 podman kill aaa
56 56
57 docker run -p 4444
58 docker port $JOB
57 podman run -p 4444
58 podman port $JOB
59 59
60 60 == TODO: compose == == TODO: compose ==
61 docker-compose up
62 docker-compose ps
63 docker-compose run web env
64 docker-compose stop
61 podman-compose up
62 podman-compose ps
63 podman-compose run web env
64 podman-compose stop
65 65
File docker/build.sh changed (mode: 100755) (index d959524..6b6232f)
... ... set -e
5 5
6 6 . ../duilder.conf . ../duilder.conf
7 7
8 RP_VER="20200604"
8 RP_VER="20200609"
9 9
10 10 docker="podman" docker="podman"
11 11
 
... ... sed \
15 15 if [ "`${docker} images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then if [ "`${docker} images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then
16 16 echo "Building rocketgit-postgresql (${RP_VER})..." echo "Building rocketgit-postgresql (${RP_VER})..."
17 17 ${docker} build \ ${docker} build \
18 --net container \
18 19 --tag="rocketgit/rocketgit-postgresql:${RP_VER}" \ --tag="rocketgit/rocketgit-postgresql:${RP_VER}" \
19 20 -f Dockerfile-postgresql \ -f Dockerfile-postgresql \
20 21 . .
File docker/push.sh changed (mode: 100755) (index 6286eff..71cadfd)
... ... set -e
7 7
8 8 echo "VER=${VER}" echo "VER=${VER}"
9 9
10 docker="podman"
11
10 12 echo -n "Is it ok (y/n)? " echo -n "Is it ok (y/n)? "
11 13 read answer read answer
12 14
 
... ... if [ "${answer}" != "y" ]; then
14 16 exit 1 exit 1
15 17 fi fi
16 18
17 docker push rocketgit/rocketgit-postgresql
18 docker push rocketgit/rocketgit-postgresql:latest
19 ${docker} push rocketgit/rocketgit-postgresql
20 ${docker} push rocketgit/rocketgit-postgresql:latest
19 21
20 docker push rocketgit/rocketgit:${VER}
21 docker push rocketgit/rocketgit:latest
22 ${docker} push rocketgit/rocketgit:${VER}
23 ${docker} push rocketgit/rocketgit:latest
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://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

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