Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Docker updates | aa4cf359af2c7c1e20e4f33c478f2bbcd134f081 | Catalin(ux) M. BOIE | 2019-11-14 03:24:05 |
Because of docker, we are now using HTTP_HOST insead of SERVER_NAME | 9cf31231d760daac43e1c3454c5a308d69ea4898 | Catalin(ux) M. BOIE | 2019-11-14 03:22:37 |
Corrected stupid space char inside cache key | 5958389c03b7536d6332a51e30b112ad3a520571 | Catalin(ux) M. BOIE | 2019-11-10 21:15:32 |
nginx: remove text/html because it is always added to gzip_types | f8717bc9ac127e806696f088389c2911a6d37e28 | Catalin(ux) M. BOIE | 2019-11-09 13:05:54 |
vm: get rid of i386 (we move to x86_64) | 67662a7b71f1b21f53fe7fa819afdf366ad3b4b4 | Catalin(ux) M. BOIE | 2019-11-09 07:58:05 |
SELinux: allow httpd_t to map rocketgit_exec_t files | 6d3550736af317791be3d6355dd90bf64de323f5 | Catalin(ux) M. BOIE | 2019-11-09 00:36:03 |
Added rg_git_repo_is_empty function plus func test | a13c5439fceffd8b1474f1105ca37c7b703d2fc9 | Catalin(ux) M. BOIE | 2019-11-08 04:34:34 |
TODO updates, user_min/max defaults changed | d2f35a43f5de793565e0df9889d587c524df5f20 | Catalin(ux) M. BOIE | 2019-11-06 16:32:08 |
More rg_exec2 fixes | 808297884e42942c83762040c4247c7cf9a593e8 | Catalin(ux) M. BOIE | 2019-11-06 16:31:09 |
Always set rg[hostname] - used also for ssh connections for TOTP | 1a7a693617ac521967b8df73245cd704004b76b5 | Catalin(ux) M. BOIE | 2019-11-06 04:10:59 |
White space corrections | 92a1b944842439b9476a954daa2a65c5acfca85c | Catalin(ux) M. BOIE | 2019-11-05 18:52:08 |
README updates | b57e3765de34c5e4ed7afa8384f24b6337352b17 | Catalin(ux) M. BOIE | 2019-11-01 03:18:48 |
download page updates | 0185da40f7b2779c886b9c3e67b10fe69b1b112c | Catalin(ux) M. BOIE | 2019-11-01 03:13:14 |
css: small updates | 59ae919c798d64f74ed8bdeb08241e4e76840afe | Catalin(ux) M. BOIE | 2019-10-30 21:33:37 |
comparison: updated pagespeed and other changes | 3f423b7b0a98c0342e5d855c254812d37a03a5b8 | Catalin(ux) M. BOIE | 2019-10-30 21:27:20 |
html: specify logo size to avoid re-render | b2ce82a59029e93438e9e6792f6aa6f7e44741c7 | Catalin(ux) M. BOIE | 2019-10-30 21:15:10 |
git(rocketgit_t) needs to map rocketgit_var_t files | 2b10062807dd4f478e136aea1c239e117b46caed | Catalin(ux) M. BOIE | 2019-10-30 21:02:18 |
css: gravatar is displayed as block to get rid of below extra space | b02dc575be2ccd8b99eff7509f8a7e62c57654a6 | Catalin(ux) M. BOIE | 2019-10-30 20:58:03 |
SELinux: more rights added | 2e71284e917886f9ef2b0dcb005f63ff8153df1f | Catalin(ux) M. BOIE | 2019-10-30 17:30:08 |
We need also php-json for API | f53e706bea1f29bb678ca39c2295ac8354af76d8 | Catalin(ux) M. BOIE | 2019-10-30 17:26:35 |
File | Lines added | Lines deleted |
---|---|---|
docker/Dockerfile-postgresql.tmpl | 9 | 9 |
docker/Dockerfile-rocketgit.tmpl | 6 | 6 |
docker/README | 3 | 3 |
docker/TODO | 1 | 0 |
docker/build.sh | 5 | 2 |
docker/prepare.sh | 1 | 1 |
docker/rg.sh | 21 | 0 |
File docker/Dockerfile-postgresql.tmpl changed (mode: 100644) (index 6c8fac4..9c91267) | |||
1 | FROM fedora:28 | ||
1 | FROM fedora:31 | ||
2 | 2 | MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro> | MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro> |
3 | 3 | ||
4 | 4 | EXPOSE 5432 | EXPOSE 5432 |
5 | 5 | ||
6 | 6 | CMD ["/usr/bin/postgres"] | CMD ["/usr/bin/postgres"] |
7 | 7 | ||
8 | RUN dnf -y install postgresql-server psmisc procps-ng | ||
8 | RUN dnf -y --setopt=tsflags=nodocs install postgresql-server psmisc procps-ng glibc-langpack-en | ||
9 | 9 | ||
10 | 10 | # Force cache cleaning | # Force cache cleaning |
11 | 11 | RUN echo @@RP_VER@@ | RUN echo @@RP_VER@@ |
12 | 12 | ||
13 | RUN dnf -y upgrade --best --allowerasing | ||
13 | RUN dnf -y --setopt=tsflags=nodocs upgrade --best --allowerasing | ||
14 | 14 | ||
15 | 15 | USER postgres | USER postgres |
16 | ENV LANG en_US.utf8 | ||
16 | ENV LC_ALL en_US.UTF-8 | ||
17 | ENV LC_CTYPE en_US.UTF-8 | ||
17 | 18 | ENV PGDATA /var/lib/pgsql/data | ENV PGDATA /var/lib/pgsql/data |
18 | 19 | ||
20 | RUN ls -l /var/lib/pgsql/data | ||
19 | 21 | RUN initdb --data-checksums | RUN initdb --data-checksums |
20 | RUN pg_ctl start -w --timeout 60 \ | ||
21 | && psql --command "CREATE USER rocketgit WITH PASSWORD 'rock'" \ | ||
22 | && createdb -O rocketgit rocketgit | ||
23 | 22 | ||
24 | 23 | USER root | USER root |
25 | 24 | RUN echo "host all all 0.0.0.0/0 trust" >> /var/lib/pgsql/data/pg_hba.conf | RUN echo "host all all 0.0.0.0/0 trust" >> /var/lib/pgsql/data/pg_hba.conf |
26 | 25 | RUN echo "listen_addresses='*'" >> /var/lib/pgsql/data/postgresql.conf | RUN echo "listen_addresses='*'" >> /var/lib/pgsql/data/postgresql.conf |
27 | 26 | ||
28 | 27 | USER postgres | USER postgres |
29 | ENV LANG en_US.utf8 | ||
30 | ENV PGDATA /var/lib/pgsql/data | ||
28 | RUN pg_ctl start -w --timeout 60 \ | ||
29 | && psql --command "CREATE USER rocketgit WITH PASSWORD 'rock'" \ | ||
30 | && createdb -O rocketgit rocketgit | ||
31 | 31 | ||
32 | 32 | VOLUME /var/lib/pgsql | VOLUME /var/lib/pgsql |
33 | 33 |
File docker/Dockerfile-rocketgit.tmpl changed (mode: 100644) (index f33b19c..646e13a) | |||
1 | FROM fedora:28 | ||
1 | FROM fedora:31 | ||
2 | 2 | MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro> | MAINTAINER Catalin(ux) M. BOIE <catab-docker@embedromix.ro> |
3 | 3 | ||
4 | 4 | EXPOSE 80 | EXPOSE 80 |
... | ... | COPY rg.sh / | |
10 | 10 | ||
11 | 11 | CMD ["/rg.sh"] | CMD ["/rg.sh"] |
12 | 12 | ||
13 | RUN dnf -y upgrade --best --allowerasing; echo @@VER@@ | ||
14 | RUN dnf -y install http://kernel.embedromix.ro/dinorepo-0.0.11-1.noarch.rpm | ||
15 | RUN dnf -y install psmisc procps-ng sendmail php-opcache qrencode openssh-server nginx | ||
16 | RUN dnf -y --disablerepo=* --enablerepo dinorepo clean all | ||
13 | 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 | ||
17 | 17 | ||
18 | 18 | 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 | 19 | /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 | 22 | RUN grep -q ^rocketgit ${dir}/etc/mail/trusted-users \ | RUN grep -q ^rocketgit ${dir}/etc/mail/trusted-users \ |
23 | 23 | || echo "rocketgit" >> /etc/mail/trusted-users | || echo "rocketgit" >> /etc/mail/trusted-users |
24 | 24 | ||
25 | RUN dnf -y install rocketgit | ||
25 | RUN dnf -y --setopt=tsflags=nodocs install rocketgit | ||
26 | 26 | ||
27 | 27 | # It is not present by default | # It is not present by default |
28 | 28 | RUN mkdir /run/php-fpm | RUN mkdir /run/php-fpm |
File docker/README changed (mode: 100644) (index cf66039..5be03af) | |||
... | ... | docker run -d -P --name rg --link rp rocketgit/rocketgit | |
7 | 7 | ||
8 | 8 | == me == | == me == |
9 | 9 | docker run -d -P --name rp rocketgit/rocketgit-postgresql | docker run -d -P --name rp rocketgit/rocketgit-postgresql |
10 | docker logs rp | ||
11 | |||
12 | 10 | docker run -d -P --name rg --link rp rocketgit/rocketgit | docker run -d -P --name rg --link rp rocketgit/rocketgit |
11 | |||
12 | docker logs rp | ||
13 | 13 | docker logs rg | docker logs rg |
14 | 14 | ||
15 | 15 | docker rm rp | docker rm rp |
... | ... | docker run -d -P --name rg --link rp \ | |
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 \ |
24 | 24 | -v /BIG1T/sync1/Dev/rocketgit/root:/usr/share/rocketgit/root \ | -v /BIG1T/sync1/Dev/rocketgit/root:/usr/share/rocketgit/root \ |
25 | rocketgit | ||
25 | rocketgit/rocketgit | ||
26 | 26 | ||
27 | 27 | ||
28 | 28 | == doc == | == doc == |
File docker/TODO changed (mode: 100644) (index bec9ff1..c8dca5b) | |||
1 | 1 | [ ] Fix rocketgit link | [ ] Fix rocketgit link |
2 | 2 | [ ] Specify docker build http://... | [ ] Specify docker build http://... |
3 | 3 | [ ] What about the composer file? | [ ] What about the composer file? |
4 | [ ] Does the container can send mail? | ||
4 | 5 | [ ] | [ ] |
File docker/build.sh changed (mode: 100755) (index 7e1fedb..2c6c9b9) | |||
... | ... | set -e | |
5 | 5 | ||
6 | 6 | . ../duilder.conf | . ../duilder.conf |
7 | 7 | ||
8 | RP_VER="20180520a" | ||
9 | sed -e "s|@@RP_VER@@|${RP_VER}|" Dockerfile-postgresql.tmpl > Dockerfile-postgresql | ||
8 | RP_VER="20191109b" | ||
9 | |||
10 | sed \ | ||
11 | -e "s|@@RP_VER@@|${RP_VER}|" \ | ||
12 | Dockerfile-postgresql.tmpl > Dockerfile-postgresql | ||
10 | 13 | if [ "`docker images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then | if [ "`docker images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then |
11 | 14 | echo "Building rocketgit-postgresql (${RP_VER})..." | echo "Building rocketgit-postgresql (${RP_VER})..." |
12 | 15 | docker build \ | docker build \ |
File docker/prepare.sh changed (mode: 100644) (index d855aae..920f943) | |||
3 | 3 | mkdir -p prepare | mkdir -p prepare |
4 | 4 | ||
5 | 5 | sed -r \ | sed -r \ |
6 | -e 's/server_name (.*);/server_name drg;/' \ | ||
6 | -e 's/server_name (.*);/server_name _;/' \ | ||
7 | 7 | ../samples/nginx.conf \ | ../samples/nginx.conf \ |
8 | 8 | > prepare/nginx.conf | > prepare/nginx.conf |
File docker/rg.sh changed (mode: 100755) (index e64c72b..3bc1df6) | |||
... | ... | for i in rsa ecdsa ed25519; do | |
9 | 9 | /usr/libexec/openssh/sshd-keygen ${i} | /usr/libexec/openssh/sshd-keygen ${i} |
10 | 10 | done | done |
11 | 11 | ||
12 | if [ ! -r /etc/pki/tls/certs/localhost.crt ]; then | ||
13 | echo "Generating key/cert for web server..." | ||
14 | openssl genrsa 2048 > /etc/pki/tls/private/localhost.key | ||
15 | chmod go-rwx /etc/pki/tls/private/localhost.key | ||
16 | echo -e "--\nSomeState\nSomeCity\nSomeOrg\nSomeOrgUnit\nlocalhost.localdomain\nroot@localhost.localdomain\n" \ | ||
17 | | openssl req -new -key /etc/pki/tls/private/localhost.key \ | ||
18 | -x509 -sha256 -days 7300 -set_serial `date +%s` \ | ||
19 | -extensions v3_req \ | ||
20 | -out /etc/pki/tls/certs/localhost.crt | ||
21 | fi | ||
22 | |||
23 | ( | ||
24 | sed -i -e 's/ default_server//g' /etc/nginx/nginx.conf | ||
25 | |||
26 | cd /etc/nginx/conf.d | ||
27 | sed -r \ | ||
28 | -e 's/listen (.*);/listen \1 default_server;/g' \ | ||
29 | rocketgit.conf.sample \ | ||
30 | > rocketgit.conf | ||
31 | ) | ||
32 | |||
12 | 33 | while [ 1 ]; do | while [ 1 ]; do |
13 | 34 | # rocketgit-fpm will be started automatically! | # rocketgit-fpm will be started automatically! |
14 | 35 | if [ "`ps ax|grep -v grep|grep \"pool rocketgit\"`" = "" ]; then | if [ "`ps ax|grep -v grep|grep \"pool rocketgit\"`" = "" ]; then |