Commit graph

389 commits

Author SHA1 Message Date
Christian Kellner
b94a4b398d compose: support --release
Use this to explicitly set the release.
2020-09-07 18:26:21 +02:00
Christian Kellner
0783e7491e compose: add distro argument
The plugin expects this, or it falls back to name-version, which is
not the right thing in most cases.
2020-09-07 18:25:27 +02:00
Christian Kellner
3ef4d5e566 plugin/osbuild: make release optional
If release was not in `opts`, use `session.getNextRelease` to
obtain the next release.
2020-09-07 18:23:28 +02:00
Christian Kellner
dbf2960792 plugins/osbuild: sync with composer's koji API
Send the NVR as part of the compose request. The result now also
contains the koji build id. The distro argument is taken from
the options.
2020-09-07 18:15:30 +02:00
Christian Kellner
750bf5421b container/builder: configure plugin via cfg file
Matches the config of the containers.
2020-09-06 20:11:37 +02:00
Christian Kellner
d31cadd304 plugins/builder: make urls configurable
Can't really hardcode those.
2020-09-06 20:10:59 +02:00
Christian Kellner
5eeb251882 spec: add spec file draft
Initial attempt at packaging.
2020-09-06 16:15:47 +02:00
Christian Kellner
a17b683f03 LICENSE: add ASL 2.0 2020-09-06 16:02:54 +02:00
Christian Kellner
5173d697e5 README.md: add development links 2020-09-05 19:38:30 +02:00
Christian Kellner
0749472d8c README.md: add make-tags.sh instructions 2020-09-05 19:34:07 +02:00
Christian Kellner
318c53d84b README.md: add compse.py instructions 2020-09-05 19:31:35 +02:00
Christian Kellner
f58ecb97ac plugin/builder: support repo overwrites
Allow the repository information to be overwritten by the user
via opts.
2020-09-05 19:28:17 +02:00
Christian Kellner
ecfdec8dbc make-tags: remove i686 from build tag 2020-09-05 19:27:55 +02:00
Christian Kellner
64ffe431ec compose.py: add osbuild plugin api client
A client that will create a compose request via the koji plugins.
2020-09-05 19:26:32 +02:00
Christian Kellner
b9b3680809 plugin/builder: make use of repo information
Don't hard-code the repo info, but get if via the build tag.
2020-09-05 18:54:52 +02:00
Christian Kellner
7fa31ce349 plugins/builder: check for supported arches
Fetch the supported architectures via the target and detect if
any of the requested are not supported.
2020-09-05 18:21:21 +02:00
Christian Kellner
9e2061f6f2 container/builder: add createrepo_c
Needed if we wanted to include external repos.
2020-09-05 18:20:24 +02:00
Christian Kellner
5c0965fe9f move 'make-tags.sh' to the top-level dir 2020-09-05 18:19:55 +02:00
Christian Kellner
7bd3f197a7 run-kojid: also add builder to createrepo channel
At least one builder needs to be able to create repos.
2020-09-05 18:14:44 +02:00
Christian Kellner
bbb9acf310 run-kojid: conditionally exec add-host-to-channel
Only execute add-host-to-channel if add-host was successful. The
former throws exceptions.
2020-09-05 18:13:01 +02:00
Christian Kellner
6cdc3e7177 plugin/builder: ability to use as executable
Turn the plugin into an executable.
2020-09-05 17:28:44 +02:00
Christian Kellner
025d3b1902 plugin/builder: create proper composer client
Make a proper client for the osbuild composer koji API and use it.
2020-09-05 17:27:55 +02:00
Christian Kellner
d5918bd789 README.md: update with latest instructions 2020-09-05 16:35:23 +02:00
Christian Kellner
814554c34f Remove old ssl and start scripts
Not needed anymore with the move to kerberos and run-koji-container.sh
2020-09-05 16:34:59 +02:00
Christian Kellner
8f09fa2813 .editorconfig: added
For the shell scripts
2020-09-05 16:34:41 +02:00
Christian Kellner
8f41087797 plugins/builder: proof-of-concept compose
Talk to composer and create a compose via a hand crafted compose
request.
2020-09-05 16:33:45 +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
aecd1596fc kerberos: add osbuild-local.conf
Needed on the host, for composer to know the LOCAL domain.
2020-09-05 16:32:50 +02:00
Christian Kellner
24de422440 run-builder.sh: start script for the builder
Simple start script for the builder. It is not integrated in
run-koji-container.sh because here in this repo, the builder
might be restarted often when working on the builder plugin.
2020-09-05 16:31:53 +02:00
Christian Kellner
2597569855 container/builder: switch to kerberos auth
Instead of using client certificates, use kerberos auth.
2020-09-05 16:31:02 +02:00
Christian Kellner
63355fe0a4 hub: switch to kerberos auth
Switch to kerberos aut and also ship ssl.conf, adapted to serve
at localhost and the fqdn, instead of creating it via sed.
2020-09-05 16:29:46 +02:00
Christian Kellner
5d59084ddb container/hub: align with upstream and scrip
Use quay.io/osbuild/koji:v1 and remove db schema generation, now
done in run-koji.cotnainer.sh.
Ensure /mnt/koji has the right permission, but don't create it,
since it is a volume and bind-mounted in.
2020-09-05 16:28:27 +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
Christian Kellner
aefe1218b5 initial import 2020-09-02 19:15:25 +02:00