smeserver-koji/README.md

55 lines
2.1 KiB
Markdown
Raw Normal View History

2023-09-01 08:45:16 +02:00
# ![smeserver-koji](https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png)
2023-08-28 06:37:57 +02:00
2023-09-01 07:47:09 +02:00
## Koji Setup Scripts
2023-08-28 06:44:38 +02:00
The purpose of these scripts it to enable setting up a koji environment quickly
with reasonable configurations.
2023-08-29 03:00:22 +02:00
These scripts have been borrowed from Clear Linux and modified to suit the smeserver (Koozali.org) setup.
2023-08-29 08:08:48 +02:00
Thanks to George T Kramer for doing a lot of the prework for these over at ClearLinux.
2023-08-28 06:48:40 +02:00
2023-09-01 07:47:09 +02:00
### Assumptions
2023-08-28 06:44:38 +02:00
* All scripts are run as the root user
* The root user has a password set
2023-08-28 07:44:59 +02:00
* These are run on a bare Rocky 8 minimal install
2023-08-28 06:44:38 +02:00
* Basic configurations (e.g. network, time, etc.) have been applied
2023-09-01 07:47:09 +02:00
* servers are reachable by their FQDNs (DNS or you've added them into the appropriate /etc/hosts files)
2023-09-02 09:32:36 +02:00
* Koji builder can exist on the hub or multiple build servers
2023-08-28 06:44:38 +02:00
2023-09-01 07:47:09 +02:00
### Getting Going
The install script will install all required components on the hub and build servers.
2023-09-01 08:41:59 +02:00
You will need to fill in some information on the way through.
2023-09-02 09:32:36 +02:00
* info for your ssl certs (Country, State, City, Org, Org Unit)
* enter the FQDN for each build server
* accept the ECDSA key fingerprint for each build server
* enter the root password for each build server
If you add debug on the install-koji-farm.sh line it will print each command executed and be very noisy (still noisy without)
2023-09-01 07:47:09 +02:00
2023-09-01 08:41:59 +02:00
On your koji hub server:
2023-09-02 09:37:59 +02:00
curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/install-koji-farm.sh > install-koji-farm.sh
chmod o+x install-koji-farm.sh
./install-koji-farm.sh
2023-09-01 07:47:09 +02:00
2023-09-05 00:51:29 +02:00
The web interface will be available at http://<FQDN of hub>/koji
2023-09-04 10:47:39 +02:00
### Adding additional Build servers
2023-09-01 07:47:09 +02:00
2023-09-04 10:55:31 +02:00
To add additional build servers into your farm, just run the following script on your hub as root
2023-08-28 06:44:38 +02:00
2023-09-04 10:47:39 +02:00
koji-add-builder.sh <FQDN of new build server> [debug]
2023-08-28 06:44:38 +02:00
2023-09-04 10:47:39 +02:00
It should already be there from the install, but if not
2023-08-28 06:44:38 +02:00
2023-09-04 10:47:39 +02:00
curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/koji-add-builder.sh > ~/bin/koji-add-builder.sh
chmod o+x ~/bin/koji-add-builder.sh
2023-08-28 06:44:38 +02:00
2023-09-04 10:47:39 +02:00
### Other components
2023-08-28 06:44:38 +02:00
2023-09-04 10:47:39 +02:00
The other scripts in the repository are used by the install-koji-farm.sh and koji-add-builder.sh scripts or I'm still experimenting with them :)