Commit graph

43 commits

Author SHA1 Message Date
Tomas Kopecek
c0c1f3c33d Don't spawn createrepo if not needed
Related: https://pagure.io/koji/issue/3808
2023-10-03 15:20:52 +02:00
Vasil Velichkov
b986805e07 kojid: Fix mock_bootstrap_image parameter name in the default config
There was a typo and the parameter name was incorrect
2023-09-04 09:37:47 +02:00
Tomas Kopecek
ad0566d7cc distrepo will not skip rpm stat by default
There is also CLI option which can override this behaviour if needed.

Related: https://pagure.io/koji/issue/3829
2023-07-18 11:31:07 +02:00
Jana Cupova
725c157fbd Allow password in SCM url with new builder option
Fixes: https://pagure.io/koji/issue/3179
2022-01-25 15:47:27 +01:00
Yu Ming Zhu
47c4b5d70b kojid: extend SCM.assert_allowed with hub policy
This is a simple extention of `SCM.assert_allowed`

- `assert_allowed_by_policy` will set the default "use_common" to False which is different to the old behavior
- `channel`, `user_id`, `scratch` are passed in the `policy_data` with scminfo right now.

This is a prototype for this change, and there are some other solutions could be implemented too

- Use a scmpolicy plugin as `postSCMCheckout` callback, the pro is that we can do more checks after the source is initialized on builder, meanwhile, the con is that the source will be downloaded even it is denied by policy. It might be a potential risk?
- Do the scm check in hub's `make_task`, this looks straightforward, but may lack some builder's information

fixes: #2757
2021-08-16 17:55:26 +00:00
Brendan Reilly
0f9a77c0e3 Add noverifyssl option to oz image builds 2021-06-17 15:46:11 +02:00
Kevin Fenzi
1fcde3464f kojid.conf: fix linewrapped comment
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-04-03 17:37:45 -07:00
Tomas Kopecek
4c9c20180c typo 2020-09-17 14:16:02 +02:00
Tomas Kopecek
f674f554f8 builder: configurable TTL for buildroots
Fixes: https://pagure.io/koji/issue/2374
2020-09-17 14:16:02 +02:00
Tomas Kopecek
f8419e3626 remove deprecated krbV support
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Tomas Kopecek
ae7f686e05 runroot: basic docs
Fixes: https://pagure.io/koji/issue/2111
2020-06-30 09:02:55 +02:00
Tomas Kopecek
bed10814eb use global option to enable bootstrap-image 2020-06-09 14:38:23 +02:00
Tomas Kopecek
f505d6bb1a make xz options configurable
Fixes: https://pagure.io/koji/issue/1901
2020-03-16 10:30:16 +01:00
Atanas Zhelev
b4b88206fe Add smtp authentication support 2020-02-12 14:38:18 +01:00
Tim Smith
80021ab904 Provide for passing credentials to SRPMfromSCM
Some places force every access to their systems to be authenticated for
audit purposes, which means even an https fetch of a source tarball
needs access to some sort of credential.

Provide for a directory intended to contain credentials to be
bind-mounted into the BuildRoot for the BuildSRPMFromSCM task as
"/credentials". Whatever runs a a result of the source_cmd ("make
sources") is responsible for doing something useful with the contents.
2019-12-12 15:22:01 +01:00
Tomas Kopecek
be1a56647a createrepo_c is used by default now
Fixes: https://pagure.io/koji/issue/716
2019-06-06 16:24:17 -04:00
Yuming Zhu
6a91a3ba6b change default value of oz_install_timeout to 0 2018-05-03 15:00:34 -04:00
Yuming Zhu
38f3d919af kojid: make install timeout of imagefactory conf configurable 2018-05-03 15:00:34 -04:00
Tomas Kopecek
5882904aea make timestamp logs configurable 2018-05-03 14:52:25 -04:00
Yuming Zhu
8da39606b8 rename parameter/default value - tmpdir to chroot_tmpdir 2018-01-16 15:35:16 -05:00
Yuming Zhu
d30f097301 builder: make temp dir be configured 2018-01-16 15:35:16 -05:00
Tomas Kopecek
44e7e93804 config default updated 2016-10-13 00:06:40 -04:00
Tomas Kopecek
eaa0943a1a Don't cancel subtask when other fails
In some cases it makes sense to continue with sibling task even if some of
them already failed. E.g. with kernel build it could be of use if submitter
knows for which archs it succeed and for which it fails. Repeated builds
could take a lot of time and resources.

Option is turned on by 'build_arch_can_fail' in kojid.conf and it is turned
on per builder. Note, that it shouldn't be enabled by default as it could
result in unnecessary resource consumption.
2016-10-13 00:06:40 -04:00
Mike McLean
a2ed2beb38 adjust option name to: use_createrepo_c 2015-12-11 16:49:37 -05:00
Dennis Gilmore
cfe69773c2 enable using createrepo_c instread of createrepo.
Make createrepo_c use a configurable action, defaulting to createrepo

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-11 16:46:40 -05:00
Till Maas
ffcf1a30eb Remove dead client CA code
The client CA is only needed to for authentication on the server side,
not for authentication on the client side. Therefore remove it from all
client login code.
2015-12-10 18:51:10 -05:00
Mathieu Bridon
689397e375 builder: Improve allowed_scms documentation in the config file
The config file tries to explain to the admin how to specify
allowed_scms, but one option (source_cmd) was missing.

This just reuses the wording of the docstring from the function parsing
this option, providing a complete documentation to admins when they read
the config file.
2014-08-15 13:55:43 -04:00
Dan Horák
8cba161a3e allow setting the timeout for builds from config file 2013-12-09 11:52:14 -06:00
Mike McLean
73d44e199a support for split storage 2011-03-18 13:57:38 -04:00
Mike Bonnet
eea730300a - enable use of a Kerberos service name other than host/ on the hub
- get the Kerberos realm from the client principal, rather than assuming the last two components of the domain name
2011-01-06 15:54:53 -05:00
Mike McLean
a2f7c9c252 fix a spelling error (rhbz 529208) 2009-12-07 12:32:37 -05:00
Mike Bonnet
66ffd25470 set %distribution the same way we set %vendor and %packager 2009-01-28 12:51:38 -05:00
Mike Bonnet
68510f93fe - move the allowed_scms validation into the assert_allowed() method of the SCM class
- make use_common an attribute of the SCM class instead of a method parameter
2008-10-01 18:00:22 -04:00
Mike Bonnet
3967f413c8 allow the checkout of the common/ directory from source control to be configured via the allowed_scms option in kojid.conf 2008-08-12 13:03:29 -04:00
Mike Bonnet
676311e721 allow use of wildcards in the allowed_scms config parameter 2008-06-03 13:35:57 -04:00
Mike Bonnet
31b5d7265c add the "allowed_scms" kojid parameter: a whitelist of hostname:repository tuples that kojid is allowed to checkout from 2007-12-18 12:52:56 -05:00
Jesse Keating
ac1f25c5eb Initial stab at no longer doing hardlinks in repo creation.
Create a filelist of packages to include in the repo
Use this filelist with createrepo and a baseurl to create
the repodata.  Add a config option for pkgurl where the packages
can be found via http.
2007-11-20 08:34:42 -05:00
Mike Bonnet
da065e9845 set a default for from_addr in kojid.conf 2007-05-02 02:08:58 -04:00
Mike Bonnet
8d71d63f77 make email notifications work
- always send notifications to the build submitter and the package owner
  - default smtphost in kojid.conf
2007-04-30 17:57:18 -04:00
Mike Bonnet
e96a8687a0 - fix koji mock-config to use sensible defaults for **opts
- add --topurl option to koji mock-config
- upload in 64k chunks in incrementalUpload
- best-effort to check when mock has truncated a file and started writing from 0 in BuildRoot.mock()
- improvements to cmdline parsing in koji call
2007-03-27 18:56:17 -04:00
Michael Bonnet
4283a3ba8f enable SSL client certificate authentication for kojid 2007-03-16 21:39:01 -04:00
Jesse Keating
9f3c4b9830 Set vendor, packager and _host for mock config. 2007-03-14 17:35:06 -04:00
Jesse Keating
5d7e66a17e Initial code drop 2007-02-14 11:25:01 -05:00