File Makefile.in changed (mode: 100644) (index 0015f1a..add1c9a) |
... |
... |
install: all |
28 |
28 |
cp -vdr inc hooks root scripts $(I_USR_SHARE)/$(PRJ) |
cp -vdr inc hooks root scripts $(I_USR_SHARE)/$(PRJ) |
29 |
29 |
@ |
@ |
30 |
30 |
@echo "Installing configs..." |
@echo "Installing configs..." |
31 |
|
@mkdir -pv $(I_ETC)/xinetd.d |
|
32 |
|
cp -vd --no-clobber samples/rg $(I_ETC)/xinetd.d/$(PRJ) |
|
33 |
31 |
@mkdir -pv $(I_ETC)/cron.d |
@mkdir -pv $(I_ETC)/cron.d |
34 |
32 |
cp -vd --no-clobber samples/cron $(I_ETC)/cron.d/$(PRJ) |
cp -vd --no-clobber samples/cron $(I_ETC)/cron.d/$(PRJ) |
35 |
33 |
@mkdir -pv $(I_ETC)/httpd/conf.d |
@mkdir -pv $(I_ETC)/httpd/conf.d |
|
... |
... |
install: all |
45 |
43 |
@mkdir -pv $(I_ETC)/ssh/sshd_config.d |
@mkdir -pv $(I_ETC)/ssh/sshd_config.d |
46 |
44 |
cp -vd --no-clobber samples/sshd-akc.conf $(I_ETC)/ssh/sshd_config.d/90-rocketgit-akc.conf |
cp -vd --no-clobber samples/sshd-akc.conf $(I_ETC)/ssh/sshd_config.d/90-rocketgit-akc.conf |
47 |
45 |
@mkdir -pv $(I_USR)/lib/systemd/system |
@mkdir -pv $(I_USR)/lib/systemd/system |
48 |
|
cp -vd samples/*.service $(I_USR)/lib/systemd/system/ |
|
|
46 |
|
cp -vd samples/*.service *.socket $(I_USR)/lib/systemd/system/ |
49 |
47 |
systemctl daemon-reload || : |
systemctl daemon-reload || : |
50 |
48 |
@ |
@ |
51 |
49 |
@echo "Installing tools..." |
@echo "Installing tools..." |
File README changed (mode: 100644) (index 0c58994..726b89f) |
35 |
35 |
Edit /etc/rocketgit/pool.conf |
Edit /etc/rocketgit/pool.conf |
36 |
36 |
|
|
37 |
37 |
. Activate rocketgit php-fpm: |
. Activate rocketgit php-fpm: |
38 |
|
systemd based distributions: |
|
39 |
|
systemctl enable rocketgit-fpm |
|
40 |
|
systemctl start rocketgit-fpm |
|
41 |
|
RedHat/CentOS/Oracle |
|
42 |
|
chkconfig rocketgit-fpm on |
|
43 |
|
service rocketgit-fpm start |
|
|
38 |
|
systemctl enable --now rocketgit-fpm |
44 |
39 |
|
|
45 |
40 |
. PHP |
. PHP |
46 |
41 |
Adjust php.ini to: |
Adjust php.ini to: |
|
62 |
57 |
(or /etc/httpd/conf.d) into rocketgit.conf and edit it. |
(or /etc/httpd/conf.d) into rocketgit.conf and edit it. |
63 |
58 |
|
|
64 |
59 |
Activate web server (nginx) |
Activate web server (nginx) |
65 |
|
systemd based distributions: |
|
66 |
|
systemctl enable nginx.service |
|
67 |
|
systemctl restart nginx.service |
|
68 |
|
RedHat/CentOS/Oracle |
|
69 |
|
chkconfig nginx on |
|
70 |
|
service nginx restart |
|
71 |
|
|
|
72 |
|
Or activate web server (apache) |
|
73 |
|
systemd based distributions: |
|
74 |
|
systemctl enable httpd.service |
|
75 |
|
systemctl restart httpd.service |
|
76 |
|
RedHat/CentOS/Oracle |
|
77 |
|
chkconfig httpd on |
|
78 |
|
service httpd restart |
|
|
60 |
|
systemctl enable nginx.service |
|
61 |
|
systemctl restart nginx.service |
|
62 |
|
|
|
63 |
|
Or activate Apache web server |
|
64 |
|
systemctl enable httpd.service |
|
65 |
|
systemctl restart httpd.service |
79 |
66 |
|
|
80 |
67 |
. Activate sshd (for ssh:// access) |
. Activate sshd (for ssh:// access) |
81 |
|
systemd based distributions: |
|
82 |
|
systemctl enable sshd.service |
|
83 |
|
systemctl start sshd.service |
|
84 |
|
RedHat/CentOS/Oracle |
|
85 |
|
chkconfig sshd on |
|
86 |
|
service sshd restart |
|
87 |
|
|
|
88 |
|
. Activate xinetd (for git:// access, optional) |
|
89 |
|
systemd based distributions: |
|
90 |
|
systemctl enable xinetd.service |
|
91 |
|
systemctl start xinetd.service |
|
92 |
|
RedHat/CentOS/Oracle |
|
93 |
|
chkconfig xinetd on |
|
94 |
|
service xinetd restart |
|
|
68 |
|
systemctl enable --now sshd.service |
|
69 |
|
|
|
70 |
|
. Activate rocketgit-git.socket (for git:// access, optional) |
|
71 |
|
systemctl enable --now rocketgit-git.socket |
95 |
72 |
|
|
96 |
73 |
. Prepare PostgreSQL server |
. Prepare PostgreSQL server |
97 |
74 |
yum/dnf install postgresql-server |
yum/dnf install postgresql-server |
|
102 |
79 |
host rocketgit rocketgit 127.0.0.1/32 trust |
host rocketgit rocketgit 127.0.0.1/32 trust |
103 |
80 |
host rocketgit rocketgit ::1/128 trust |
host rocketgit rocketgit ::1/128 trust |
104 |
81 |
|
|
105 |
|
systemd based distributions: |
|
106 |
|
systemctl enable postgresql.service |
|
107 |
|
export PGSETUP_INITDB_OPTIONS="--data-checksums" # recommended |
|
108 |
|
postgresql-setup --initdb # (TAKE CARE! YOU MAY DESTROY ALL YOUR DATA!) |
|
109 |
|
systemctl start postgresql.service |
|
110 |
|
RedHat/CentOS/Oracle |
|
111 |
|
chkconfig postgresql on |
|
112 |
|
service postgresql initdb |
|
113 |
|
service postgresql start |
|
|
82 |
|
systemctl enable postgresql.service |
|
83 |
|
export PGSETUP_INITDB_OPTIONS="--data-checksums" # recommended |
|
84 |
|
postgresql-setup --initdb # (TAKE CARE! YOU MAY DESTROY ALL YOUR DATA!) |
|
85 |
|
systemctl start postgresql.service |
114 |
86 |
|
|
115 |
87 |
Notes: |
Notes: |
116 |
88 |
- Check also the config file (/etc/rocketgit/config.php) and set |
- Check also the config file (/etc/rocketgit/config.php) and set |
|
129 |
101 |
To be able to generate e-mails as other user, you have to: |
To be able to generate e-mails as other user, you have to: |
130 |
102 |
For sendmail: |
For sendmail: |
131 |
103 |
- Enable daemon: |
- Enable daemon: |
132 |
|
systemd based distributions: systemctl enable sendmail.service |
|
133 |
|
RedHat/CentOS/Oracle: chkconfig sendmail on |
|
|
104 |
|
systemctl enable sendmail.service |
134 |
105 |
- Edit /etc/mail/trusted-users and add 'rocketgit' and 'apache'. |
- Edit /etc/mail/trusted-users and add 'rocketgit' and 'apache'. |
135 |
106 |
- Restart daemon: |
- Restart daemon: |
136 |
|
systemd based distributions: systemctl restart sendmail.service |
|
137 |
|
RedHat/CentOS/Oracle: service sendmail restart |
|
|
107 |
|
systemctl restart sendmail.service |
138 |
108 |
|
|
139 |
109 |
. Edit firewall to permit ssh, git, http and https ports |
. Edit firewall to permit ssh, git, http and https ports |
140 |
110 |
In /etc/sysconfig/iptables (IPv4) and ip6tables (IPv6), add something |
In /etc/sysconfig/iptables (IPv4) and ip6tables (IPv6), add something |
|
158 |
128 |
tweaked. It is very important to set the 'Host name' value. |
tweaked. It is very important to set the 'Host name' value. |
159 |
129 |
|
|
160 |
130 |
. Activate the builder service, if you want: |
. Activate the builder service, if you want: |
161 |
|
systemctl enable rocketgit-builder |
|
|
131 |
|
systemctl enable --now rocketgit-builder |
162 |
132 |
|
|
163 |
133 |
. Activate the worker service, if you want: |
. Activate the worker service, if you want: |
164 |
|
systemctl enable rocketgit-worker@main |
|
|
134 |
|
systemctl enable --now rocketgit-worker@main |
165 |
135 |
|
|
166 |
136 |
|
|
167 |
137 |
== Thanks == |
== Thanks == |
File TODO changed (mode: 100644) (index 7598bf2..e747f6b) |
5 |
5 |
== After deploy on rocketgit.com == |
== After deploy on rocketgit.com == |
6 |
6 |
[ ] Add to "Corporate friendly": a link to a frustrations page about current software. |
[ ] Add to "Corporate friendly": a link to a frustrations page about current software. |
7 |
7 |
[ ] Resync nginx conf on rg2 (because ws builder?). |
[ ] Resync nginx conf on rg2 (because ws builder?). |
|
8 |
|
[ ] Activate rocketgit-git.socket. |
8 |
9 |
[ ] Switch worker@com to websocket. |
[ ] Switch worker@com to websocket. |
9 |
10 |
[ ] docker |
[ ] docker |
10 |
11 |
[ ] old environments are present in the list! At least on dev1. |
[ ] old environments are present in the list! At least on dev1. |
|
... |
... |
to add a worker? Also, no hint is presented. |
1412 |
1413 |
php-fpm comes with files in /etc/nginx! So can we! |
php-fpm comes with files in /etc/nginx! So can we! |
1413 |
1414 |
[ ] At least for http we do not check if host does not matches and warn user |
[ ] At least for http we do not check if host does not matches and warn user |
1414 |
1415 |
to change it. |
to change it. |
1415 |
|
[ ] Get rid of xinetd and run remote.php as a service. With a .service file. |
|
|
1416 |
|
[ ] Get rid of xinetd and run remote.php as a service. With a .service file. Done. |
1416 |
1417 |
The same for all other cron scripts (except cron.php)! |
The same for all other cron scripts (except cron.php)! |
1417 |
1418 |
[ ] unit test for apikeys |
[ ] unit test for apikeys |
1418 |
1419 |
[ ] advertise on git mailing list. |
[ ] advertise on git mailing list. |
File rocketgit.spec changed (mode: 100644) (index ddf55e8..cbb7b05) |
... |
... |
BuildArch: noarch |
17 |
17 |
|
|
18 |
18 |
# fuse is required for rgfs |
# fuse is required for rgfs |
19 |
19 |
Requires: httpd-filesystem, nginx-filesystem, php-fpm, php-cli, php-pgsql, php-mbstring |
Requires: httpd-filesystem, nginx-filesystem, php-fpm, php-cli, php-pgsql, php-mbstring |
20 |
|
Requires: git-core, cronie, xinetd, php-json, php-ldap |
|
|
20 |
|
Requires: git-core, cronie, php-json, php-ldap |
21 |
21 |
Requires: util-linux, qrencode, fuse, openssh-server, gpg |
Requires: util-linux, qrencode, fuse, openssh-server, gpg |
22 |
22 |
|
|
23 |
23 |
# SELinux stuff |
# SELinux stuff |
|
... |
... |
done |
55 |
55 |
[ -r /tmp/rgsdebug ] && echo "restorecon -R..." |
[ -r /tmp/rgsdebug ] && echo "restorecon -R..." |
56 |
56 |
/sbin/restorecon -R /var/lib/rocketgit || : |
/sbin/restorecon -R /var/lib/rocketgit || : |
57 |
57 |
|
|
58 |
|
if [ $1 -ne 0 ]; then |
|
59 |
|
[ -r /tmp/rgsdebug ] && echo "Reloading xinetd..." |
|
60 |
|
/usr/bin/systemctl reload xinetd &>/dev/null || : |
|
61 |
|
fi |
|
62 |
58 |
[ -r /tmp/rgsdebug ] && echo "systemd_post fpm..." |
[ -r /tmp/rgsdebug ] && echo "systemd_post fpm..." |
63 |
59 |
%systemd_post rocketgit-fpm.service |
%systemd_post rocketgit-fpm.service |
64 |
60 |
[ -r /tmp/rgsdebug ] && echo "systemd_post builder..." |
[ -r /tmp/rgsdebug ] && echo "systemd_post builder..." |
65 |
61 |
%systemd_post rocketgit-builder.service |
%systemd_post rocketgit-builder.service |
66 |
62 |
[ -r /tmp/rgsdebug ] && echo "systemd_post fs..." |
[ -r /tmp/rgsdebug ] && echo "systemd_post fs..." |
67 |
63 |
%systemd_post rocketgit-fs.service |
%systemd_post rocketgit-fs.service |
|
64 |
|
[ -r /tmp/rgsdebug ] && echo "systemd_post git..." |
|
65 |
|
%systemd_post rocketgit-git.socket |
68 |
66 |
[ -r /tmp/rgsdebug ] && echo "'post' done..." |
[ -r /tmp/rgsdebug ] && echo "'post' done..." |
69 |
67 |
|
|
70 |
68 |
%preun |
%preun |
|
... |
... |
fi |
72 |
70 |
%systemd_preun rocketgit-builder.service |
%systemd_preun rocketgit-builder.service |
73 |
71 |
%systemd_preun rocketgit-fs.service |
%systemd_preun rocketgit-fs.service |
74 |
72 |
%systemd_preun rocketgit-worker@\*.service |
%systemd_preun rocketgit-worker@\*.service |
|
73 |
|
%systemd_preun rocketgit-git.socket |
75 |
74 |
|
|
76 |
75 |
%postun |
%postun |
77 |
76 |
if [ $1 = 0 ]; then |
if [ $1 = 0 ]; then |
|
... |
... |
fi |
85 |
84 |
%systemd_postun_with_restart rocketgit-builder.service |
%systemd_postun_with_restart rocketgit-builder.service |
86 |
85 |
%systemd_postun_with_restart rocketgit-fs.service |
%systemd_postun_with_restart rocketgit-fs.service |
87 |
86 |
%systemd_postun_with_restart rocketgit-worker@\*.service |
%systemd_postun_with_restart rocketgit-worker@\*.service |
|
87 |
|
%systemd_postun_with_restart rocketgit-git.socket |
88 |
88 |
|
|
89 |
89 |
%prep |
%prep |
90 |
90 |
%setup -q |
%setup -q |
|
... |
... |
rm -rf ${RPM_BUILD_ROOT} |
115 |
115 |
%config(noreplace) /etc/rocketgit/php-fpm.conf |
%config(noreplace) /etc/rocketgit/php-fpm.conf |
116 |
116 |
%config(noreplace) /etc/rocketgit/pool.conf |
%config(noreplace) /etc/rocketgit/pool.conf |
117 |
117 |
%config(noreplace) /etc/cron.d/rocketgit |
%config(noreplace) /etc/cron.d/rocketgit |
118 |
|
%config(noreplace) /etc/xinetd.d/rocketgit |
|
119 |
118 |
%config(noreplace) /etc/ssh/sshd_config.d/* |
%config(noreplace) /etc/ssh/sshd_config.d/* |
120 |
119 |
%attr(0700,rocketgit,rocketgit) %dir /var/log/rocketgit |
%attr(0700,rocketgit,rocketgit) %dir /var/log/rocketgit |
121 |
120 |
%attr(0771,rocketgit,rocketgit) %dir /var/lib/rocketgit |
%attr(0771,rocketgit,rocketgit) %dir /var/lib/rocketgit |