Commit graph

549 commits

Author SHA1 Message Date
Mike McLean
393dba2fa9 cli: handle rpms in download-build 2016-01-18 16:34:09 -05:00
Mike McLean
4365699e84 add-pkg: use multicall and ignore existing packages 2016-01-18 16:22:59 -05:00
Mike McLean
a6c218df94 avoid traceback when cli fails to parse task parameters
also, fix parameter parsing for createLiveCD and createAppliance
2016-01-11 14:30:55 -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
Mike McLean
c8fccdeba5 display task info for regen-repo command 2015-12-04 16:31:55 -05:00
Mike McLean
964561b426 fall back to client side info for authtype 2015-12-03 19:50:10 -05:00
Mike Bonnet
5569c058c1 print the correct authentication method in "koji moshimoshi" 2015-12-01 18:51:53 -05:00
Mike McLean
41237ec6a9 taginfo: return error code if tag does not exist, drop stray newlines 2015-12-01 13:02:31 -05:00
Mike McLean
47189e0c3a Merge branch 'cgen'
Merge in content generator changes

Conflicts:
	hub/kojihub.py
2015-11-18 10:55:21 -05:00
Ian McLeod
66fdccd1b3 add mechanism for general purpose parameter passing to Image Factory
We originally added semi-generic parameter passing for OVA support and
then overloaded it for Vagrant support, before breaking that back out
as specific image types.

This change adds a fairly generic mechanism for parameter passthrough
to plugins and the base builder that does not require patching the
builder and CLI each time a new class of parameter is added to Factory.

The immediate reason for doing this is to expose the Docker plugin's
ability to set custom labels, environments and commands, but it is
likely to be useful for other things in the future.
2015-11-17 14:47:30 -05:00
Mike McLean
87fb7f46e9 Merge remote-tracking branch 'origin/master' into cgen 2015-11-17 10:52:42 -05:00
Mike McLean
66c3181781 show extra data in cli. fix cli rpminfo for cg brs 2015-11-01 18:13:29 -05:00
Mike McLean
870638b152 fix python 2.4 incompatibilities in download-task and runroot commands 2015-10-29 21:19:54 -04:00
Mike McLean
95f1182727 show upload progress in import-cg 2015-10-26 16:27:45 -04:00
Mike McLean
2c77d36667 first stab at support metadata only cg imports, plus a few fixes 2015-10-21 12:03:43 -04:00
Mike McLean
445a70b5cb fix up mistakes in cg cli handlers 2015-10-19 15:07:43 -04:00
Mike McLean
bdfcde8604 adjust cg access terminology 2015-10-05 16:22:02 -04:00
Mike McLean
4b0438c8f6 cli for managing cg users 2015-09-30 14:00:35 -04:00
Mike McLean
53642d2031 fix upload path 2015-09-28 23:06:13 -04:00
Mike McLean
f0d112551c work on cg import cli 2015-09-28 19:54:49 -04:00
Mike McLean
d31e774a1c Merge remote-tracking branch 'origin/master' into cgen 2015-09-21 15:43:01 -04:00
Mike McLean
4bb191cbcf check for tag existence in add-pkg 2015-09-21 15:39:27 -04:00
Mike McLean
91c877d359 add/remove user from cg 2015-09-21 15:37:50 -04:00
Mike McLean
77e26b7e19 cgen cli stub 2015-09-21 15:37:50 -04:00
Ian McLeod
ae71801f29 add support for Image Factory generation of VMWare Fusion Vagrant boxes 2015-09-11 15:47:22 -04:00
Dennis Gilmore
8fe713566b cli: rename download-scratch-build to download-task
since you can download any task  not just scratch builds it seems
silly to call it download-scratch-build

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-30 14:56:36 -05:00
Dennis Gilmore
4ec6cd34ad koji cli: add download-scratch-build command
patch from Jan Vcelak https://fedorahosted.org/koji/ticket/237

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-30 14:34:08 -05:00
Mike McLean
0fb670598b show tag_extra in cli list-history 2015-06-24 09:46:16 -04:00
Mike McLean
9c8832f3c1 show/edit tag extra options in cli 2015-06-24 09:46:15 -04:00
Mike McLean
22f720f085 download-logs: print a message when there are no logs to download
see: https://bugzilla.redhat.com/show_bug.cgi?id=1232916
2015-06-24 09:40:54 -04:00
Ralph Bean
cf96a3f037 Catch the case where the runroot plugin is not installed. 2015-06-06 16:22:04 -04:00
Daniel Mach
a76a125e9a Add CLI for runroot plugin. 2015-06-06 16:22:04 -04:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Jay Greguske
865f93c1e2 add vhd/vpc support 2015-05-06 15:22:02 -04:00
Ian McLeod
52a01883d6 Add "real" Vagrant format options to image building.
We originally added Vagrant support by tweaking options sent
to the existing RHEV-M and vSphere OVA generation code.  This was
a bit of a hack and resulted in confusing filenames.

This adds "vagrant-libvirt" and "vagrant-virtualbox" image types,
passes in the correct options to Image Factory and produces output
files with the conventional ".box" extension and more descriptive
and less confusing vagrant name suffixes.
2015-04-23 21:35:46 -05:00
Mike McLean
731add25f4 for prune-signed-copies, consider file timestamp 2015-03-10 14:32:08 -04:00
Mike McLean
017e1ad053 support latest=N api option in cli 2015-03-10 14:32:08 -04:00
Mike McLean
8d3166f13f Support conf.d in kojihub and kojiweb 2015-02-04 05:33:34 -05:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike Bonnet
7a6544a53d fix a few errors revealed by pylint 2014-10-28 23:54:21 -04:00
Mike Bonnet
1e8b7211ee add --ini and --section options to maven-build and wrapper-rpm
Support use of a .ini file to pass parameters to maven-build and wrapper-rpm.
2014-10-28 23:54:20 -04:00
Mike Bonnet
d60bf0529e move maven-chain parsing into util so it can be used by other utilities 2014-10-28 23:54:20 -04:00
Mike Bonnet
004a1ba450 preserve the format of parameters with no value when calling maven-build and maven-chain
-Dfoo and -Dfoo= mean different things to the JVM, so make sure the format of the parameter on the command-line is carried through to the mvn invocation.
2014-10-28 23:54:20 -04:00
Mike McLean
e9481f6d44 remove debug line 2014-10-16 14:57:25 -04:00
Mike McLean
f6f7299dc2 list-history --watch 2014-10-16 14:53:14 -04:00
Ian McLeod
987fb03cee Initial attempt at a koji task based on the Indirection plugin
This creates a new koji task type and CLI option called
image-build-indirection

This task builds an output image using the Image Factory "Indirection"
plugin

It takes as its input two already built images, either as explicit
task numbers of NVR and arch.  It also requires a modified TDL
file as described in the Image Factory source.

The two input images are referred to as the base_image, which contains
content to be turned into another output image, and the utility_image,
which is a full system that will be booted to do the transformation.

The TDL, or "indirection_template" describes the tasks to be performed
inside of the running base image to generate the output.

This feature has the potential to build all of the following types of
images:

Disk Image Builder disk images, built with DIB elements using DIB itself
Live ISO images created using Live Media Creator
Docker layered images built using an arbitrary Docker version and a
Docker base image already built inside of koji
2014-10-09 16:40:07 -04:00
Jay Greguske
1f80946689 complain if the user does not exist 2014-09-22 12:54:20 -04:00
Mike McLean
9432d3e38a support --link in import-archive 2014-08-20 15:09:58 -04:00
Jay Greguske
c1b42e0c67 add raw-xz option 2014-07-31 17:00:09 -04:00
Mike McLean
bac5601bf8 Revert "image: support xz compressed raw files"
This reverts commit 1cbc534d89.
2014-07-31 17:00:09 -04:00