List of commits:
Subject Hash Author Date (UTC)
Do not store dependencies in a file but in a variable 13ba1da3a4a422e798393565e0a6941df660300a Catalin(ux) M. BOIE 2021-10-22 05:49:24
Forgot to create ssh dir for spec 1fd7185cdbf427451a7f4c5ada54e43febc5184f Catalin(ux) M. BOIE 2021-10-22 05:46:41
Still need to extract rpm info when switching users c4ddd883070d8fe48c876196dd3e4e08419745eb Catalin(ux) M. BOIE 2021-10-22 05:28:24
Add build_tools to the main script b0f721d9391a9cbe443a986f7d15cd8c052abd11 Catalin(ux) M. BOIE 2021-10-22 05:18:54
Again, first install the dependencies 919e46d2a71935451f576da32b61d2b6ecab126b Catalin(ux) M. BOIE 2021-10-22 05:02:50
Cosmetic cabc1c5cec8943d614b98b7f0ca8599cf5e2682c Catalin(ux) M. BOIE 2021-10-21 17:16:33
Install dependencies before trying to build the rpm 4df3dbf7e1f79b0c616d8dbeba8b1b30c9474f17 Catalin(ux) M. BOIE 2021-10-21 16:49:37
duilder fixes 2afa9250c1da72997092847df5a2a18cddb8ccb9 Catalin(ux) M. BOIE 2021-10-21 15:59:24
worker: move dependencies path 2e8902609a2d94e2eba5fb8ccda85de90ae23fb5 Catalin(ux) M. BOIE 2021-10-21 15:22:25
Lots of changes, too hard to split them; sorry about it 77c26d9ce82d452ebdc1b609d71c5e931768805c Catalin(ux) M. BOIE 2021-10-21 06:05:51
Lots of changes to the rg daemons 8b68e3967f650953d368dfb5ca5cdd2927e9c0de Catalin(ux) M. BOIE 2021-10-21 06:05:03
Hooks: Mostly cosmetic 3633af7d937f7c9c7c0c33cdc3ad9897aab8becd Catalin(ux) M. BOIE 2021-10-21 06:04:02
Added RGFS for packages e0573aadcff81694d38ee448326964bddf0c3c13 Catalin(ux) M. BOIE 2021-10-21 06:02:37
Container changes cb3c4a84e2abc3a4b206925b60fdf4524e0379de Catalin(ux) M. BOIE 2021-10-21 06:01:25
Lots of html/css changes bde37682fac058f68806b3342ba043a2f72458ba Catalin(ux) M. BOIE 2021-10-21 06:00:29
Lots of tests updated 40e01f4db4d341d4e2dceb4407ea7d6ff523ac9e Catalin(ux) M. BOIE 2021-10-21 06:00:02
Big changes to add rpm packages repositories 5e07ff440d6ad7f0ef9900a634b2f39f0e7fa1e4 Catalin(ux) M. BOIE 2021-10-21 05:59:26
Cosmetic 02376344f7d7d321d824ab7978de2ad49c007167 Catalin(ux) M. BOIE 2021-05-23 12:57:06
Added FIDO2 support for SSH 04186abe13896ad4f4ea7126691d0a2b1798de1a Catalin(ux) M. BOIE 2021-05-23 12:30:43
ssh: show the id of the key both on web and when connecting ab95ccfa2819d6ac9f427209ee61c75aad8a3661 Catalin(ux) M. BOIE 2021-05-23 10:52:44
Commit 13ba1da3a4a422e798393565e0a6941df660300a - Do not store dependencies in a file but in a variable
Author: Catalin(ux) M. BOIE
Author date (UTC): 2021-10-22 05:49
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2021-10-22 05:49
Parent(s): 1fd7185cdbf427451a7f4c5ada54e43febc5184f
Signer:
Signing key:
Signing status: N
Tree: 410efdf8f360832e0d4d3fe2ed6d1595dd0ce08b
File Lines added Lines deleted
scripts/worker.php 7 10
File scripts/worker.php changed (mode: 100644) (index 19c3cf8..29b7c46)
... ... function start_worker_build_tools($job, &$reason, &$reason2)
571 571 . ' spec_rel=`grep ^Release: "${spec_file}" | cut -d: -f2 | tr -d " \t\r\n"`' . "\n" . ' spec_rel=`grep ^Release: "${spec_file}" | cut -d: -f2 | tr -d " \t\r\n"`' . "\n"
572 572 . ' spec_deps=`rpmspec --parse "${spec_file}" | grep ^BuildRequires | cut -d: -f2 | tr ",\t\r\n" " "`' . "\n" . ' spec_deps=`rpmspec --parse "${spec_file}" | grep ^BuildRequires | cut -d: -f2 | tr ",\t\r\n" " "`' . "\n"
573 573 . ' xecho " DEBUG: name=${spec_name}, ver=${spec_ver}, rel=${spec_rel}"' . "\n" . ' xecho " DEBUG: name=${spec_name}, ver=${spec_ver}, rel=${spec_rel}"' . "\n"
574 . ' if [ "${spec_deps}" != "" ]; then' . "\n"
575 . ' xecho " Storing deps [${spec_deps}] into /mnt/tmp/_deps"' . "\n"
576 . ' echo ${spec_deps} > /mnt/tmp/_deps' . "\n"
577 . ' fi' . "\n"
578 574 . ' echo' . "\n" . ' echo' . "\n"
579 575 . '}' . "\n" . '}' . "\n"
580 576 . "\n" . "\n"
 
... ... function start_worker($job)
1450 1446 . 'fi' . "\n" . 'fi' . "\n"
1451 1447 . "\n" . "\n"
1452 1448 . 'while [ "${ERR}" = "" ]; do' . "\n" . 'while [ "${ERR}" = "" ]; do' . "\n"
1449 . ' echo; echo "`date`: Running build.sh script"' . "\n"
1453 1450 . ' date +%s > /mnt/T_BUILD_START' . "\n" // TODO: not read and not exposed . ' date +%s > /mnt/T_BUILD_START' . "\n" // TODO: not read and not exposed
1454 1451 . ' su - build -c "bash /mnt/build.sh" &>/mnt/status/build.log' . "\n" . ' su - build -c "bash /mnt/build.sh" &>/mnt/status/build.log' . "\n"
1455 1452 . ' E=${?}' . "\n" . ' E=${?}' . "\n"
 
... ... function start_worker($job)
1461 1458 . "\n" . "\n"
1462 1459 . ' # Now we may have the .spec file, we can try to extract info' . "\n" . ' # Now we may have the .spec file, we can try to extract info' . "\n"
1463 1460 . ' rg_extract_rpm_info /mnt/target || break' . "\n" . ' rg_extract_rpm_info /mnt/target || break' . "\n"
1464 . ' _deps=`cat /mnt/tmp/_deps`' . "\n"
1465 . ' if [ "${_deps}" != "" ]; then' . "\n"
1466 . ' echo; echo "`date`: Installing dependencies [${_deps}]"' . "\n"
1461 . ' if [ "${spec_deps}" != "" ]; then' . "\n"
1462 . ' echo; echo "`date`: Installing dependencies [${spec_deps}]"' . "\n"
1467 1463 . ' export DEBIAN_FRONTEND=noninteractive' . "\n" . ' export DEBIAN_FRONTEND=noninteractive' . "\n"
1468 1464 . ' export APT_LISTCHANGES_FRONTEND=none' . "\n" . ' export APT_LISTCHANGES_FRONTEND=none' . "\n"
1469 . ' ' . $env['pkg_cmd'] . ' ${_deps}' . "\n"
1465 . ' ' . $env['pkg_cmd'] . ' ${spec_deps}' . "\n"
1470 1466 . ' if [ "${?}" != "0" ]; then' . "\n" . ' if [ "${?}" != "0" ]; then' . "\n"
1471 1467 . ' ERR="cannot install deps"' . "\n" . ' ERR="cannot install deps"' . "\n"
1472 1468 . ' break' . "\n" . ' break' . "\n"
1473 1469 . ' fi' . "\n" . ' fi' . "\n"
1474 1470 . ' fi' . "\n" . ' fi' . "\n"
1475 1471 . "\n" . "\n"
1472 . ' echo; echo "`date`: Running build_rpms.sh script"' . "\n"
1476 1473 . ' date +%s > /mnt/T_RPMS_START' . "\n" . ' date +%s > /mnt/T_RPMS_START' . "\n"
1477 1474 . ' su - build -c "bash /mnt/build_rpms.sh" &>/mnt/status/build_rpms.log' . "\n" . ' su - build -c "bash /mnt/build_rpms.sh" &>/mnt/status/build_rpms.log' . "\n"
1478 1475 . ' E=${?}' . "\n" . ' E=${?}' . "\n"
 
... ... function start_worker($job)
1514 1511 . 'date +%s > /mnt/T_DONE' . "\n\n" . 'date +%s > /mnt/T_DONE' . "\n\n"
1515 1512 . 'echo "MDONE" > /dev/virtio-ports/rgw' . "\n" . 'echo "MDONE" > /dev/virtio-ports/rgw' . "\n"
1516 1513 . "\n" . "\n"
1517 . 'echo "`date`: Syncing"' . "\n"
1514 . 'echo; echo "`date`: Syncing"' . "\n"
1518 1515 . 'sync' . "\n" . 'sync' . "\n"
1519 1516 . "\n" . "\n"
1520 . 'echo "`date`: Shutting down"' . "\n"
1517 . 'echo; echo "`date`: Shutting down"' . "\n"
1521 1518 . 'while [ -r /root/stop ]; do' . "\n" . 'while [ -r /root/stop ]; do' . "\n"
1522 1519 . ' sleep 1' . "\n" . ' sleep 1' . "\n"
1523 1520 . 'done' . "\n" . 'done' . "\n"
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