Add installer to README

This commit is contained in:
Trevor Batley 2023-09-01 15:47:09 +10:00
parent 2e832d92c6
commit ea3ff421d1

View File

@ -1,6 +1,6 @@
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> smeserver-koji # <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> smeserver-koji
# Koji Setup Scripts ## Koji Setup Scripts
The purpose of these scripts it to enable setting up a koji environment quickly The purpose of these scripts it to enable setting up a koji environment quickly
with reasonable configurations. with reasonable configurations.
@ -8,16 +8,27 @@ with reasonable configurations.
These scripts have been borrowed from Clear Linux and modified to suit the smeserver (Koozali.org) setup. These scripts have been borrowed from Clear Linux and modified to suit the smeserver (Koozali.org) setup.
Thanks to George T Kramer for doing a lot of the prework for these over at ClearLinux. Thanks to George T Kramer for doing a lot of the prework for these over at ClearLinux.
## Assumptions ### Assumptions
* All scripts are run as the root user * All scripts are run as the root user
* The root user has a password set * The root user has a password set
* These are run on a bare Rocky 8 minimal install * These are run on a bare Rocky 8 minimal install
* Basic configurations (e.g. network, time, etc.) have been applied * Basic configurations (e.g. network, time, etc.) have been applied
* servers are contactable by DNS (or you've added them into the appropriate /etc/hosts files) * servers are reachable by their FQDNs (DNS or you've added them into the appropriate /etc/hosts files)
* Only one koji builder is required * Only one koji builder is required
## Getting Going ### Getting Going
The install script will install all required components on the hub and build servers.
You will need to fill in some information on the way through
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
### Using the scripts yourself
The install script now does all of this, but, if you want to do individual components, or understand the process better...
1. On the koji hub, copy these scripts into your ~/bin directory and make sure they are executeable 1. On the koji hub, copy these scripts into your ~/bin directory and make sure they are executeable
@ -35,14 +46,14 @@ Thanks to George T Kramer for doing a lot of the prework for these over at Clear
1. Run the required following scripts 1. Run the required following scripts
deploy-koji.sh deploy-koji.sh
If koji builder machine is not the same as koji master machine: If koji builder machine is not the same as koji master machine:
1. On the koji master, run 1. On the koji master, run
deploy-koji-nfs-server.sh deploy-koji-nfs-server.sh
1. On the koji builder, copy over keys and parameters from the Hub 1. On the koji builder, copy over keys and parameters from the Hub
mkdir -p /etc/pki/koji mkdir -p /etc/pki/koji
scp root@<FQDN of koji hub>:/etc/pki/koji/<FQDN of builder>.pem /etc/pki/koji/. scp root@<FQDN of koji hub>:/etc/pki/koji/<FQDN of builder>.pem /etc/pki/koji/.
@ -62,4 +73,4 @@ If koji builder machine is not the same as koji master machine:
1. Return to the hub and run (this isn't right yet....) 1. Return to the hub and run (this isn't right yet....)
bootstrap-build.sh bootstrap-build.sh