Commit graph

12 commits

Author SHA1 Message Date
Christian Kellner
b9c3a3d2f9 all: sync with composer changes
Upstream composer has introduce a few changes that we need to
adapt for:

 - the koji composer API is now exposed on the standard https
   port (443). Thus koji hub and web need to move to a different
   pair: 8080 (http) and 4343 (https). Change the scripts and
   tests for that

 - the koji API gained a prefix 'api/composer-koji/v1/'. Change
   client and unit tests to use that prefix. Use urljoin to
   create new APIs

 - composer configuration format (osbuild-composer.toml) has
   changed and now also includes configuration for the CA
   and allowed domains

 - update the composer RPM repositories to the commit for the
   21 upstream release.
2020-09-25 22:33:31 +01:00
Christian Kellner
1db41a067f run-koji-container: be more verbose
Show logs and running containers, should help track down issues.
2020-09-10 18:41:13 +01:00
Christian Kellner
1effdc7a2c container/hub: sync with script via file
Create a file in the hub container the share directory that will
signal to the outside that we are done with the setup.
2020-09-10 18:41:13 +01:00
Christian Kellner
7a366eca7a run-koji-container: don't fail if share dir exists
We need to drop in the RPMs into the share-dir before the hub
container is started, so don't fail if the directory already
exists.
2020-09-10 18:41:13 +01:00
Christian Kellner
c735ebc6d0 container: support for koji web
Install and configure koji web.
2020-09-07 20:38:12 +02:00
Christian Kellner
12eac284ef run-koji-container: use our koji hub container
Instead of the osbuild upstream one.
2020-09-05 16:33:22 +02:00
Christian Kellner
9127806dd1 run-container: add kerberos credentials for kojid
Add kerberos credentials for the builder, aka kojid, to use.
2020-09-05 15:34:51 +02:00
Christian Kellner
53de9b32c1 run-container: support connecting to koji via FQDN
Support connecting to koji via its fully qualified domain name, i.e.
org.osbuild.koji.koji. For this an extra SSL certificate is needed,
that has the FQDN as the subject, as well as a kerberos principal.

NB: This needs to have a apache VirtualHost section for the FQDN
that uses the new certificate as well.
2020-09-05 15:32:02 +02:00
Christian Kellner
96ba6ffaa7 run-container: set the hostname for containers
Pass `--hostname` to set the hostname for all containers.
2020-09-05 15:18:40 +02:00
Christian Kellner
a81a4fd27f run-container: make koji image a config an option 2020-09-02 19:40:08 +02:00
Christian Kellner
c377624896 run-container: mount koji data directory 2020-09-02 19:39:46 +02:00
Christian Kellner
70832fb912 Import upstream koji container runner
Upstream commit 05fd221
2020-09-02 19:25:39 +02:00