API documentation

The image_builder package forms the core functionality of the build service.

bootiso Module

class image_builder.bootiso.Bootiso(arch, release, version, repos, mirrors, proxy, outputdir, product)[source]

Create Boot ISO via lorax

get_yum_base_object(installroot, repositories, mirrors, proxy, tempdir='/tmp')[source]

with help from http://git.fedorahosted.org/git/?p=lorax.git;a=blob_plain;f=src/sbin/lorax;hb=HEAD

make_iso()[source]

Create yum base object and fire the ISO build process

build_monitor Module

imagebuilder Module

class image_builder.imagebuilder.ImageBuilder(buildconfig, kickstart=None)[source]
build()[source]
checkmonitor()[source]

Check if build monitor is running

getip()[source]

Get the public facing IP address

getlogfile()[source]

Return the log file

initlog()[source]

Initiate the logging in local mode

notify_email_final()[source]

Send a final notification email upon build completion

notify_email_init()[source]

Send a notification email upon build initiation with the monitor access URL: <ip>:/log/tmp/imagebuild_xxx.log

notification Module

class image_builder.notification.Notification[source]
getconfig()[source]
send_email(recipient, headers, message)[source]

repo_create Module

class image_builder.repo_create.RepoCreate(repodir, arch)[source]

Bases: object

Create side repository with additional packages

download_packages(packages)[source]

Download the packages

get_build(nvr)[source]
get_koji_connection()[source]

Return a Connection to Koji hub

get_rpm_urls(nvr)[source]

Get the download URLs of the RPMs from NVR string

get_rpms(build_id)[source]
make_repo(packages)[source]

Create the side repository after downloading the extra packages

make_repo_metadata()[source]
prep_repo_dir()[source]

transfer Module

class image_builder.transfer.Transfer(buildconfig, imgloc, logfile)[source]

Image transfer module

transfer()[source]
transfer_ftp()[source]

FTP image transfer

transfer_local(staging)[source]

Local file system copy

util Module

Utility functions for the Command line clients

class image_builder.util.Utilities[source]
get_dict(buildconfig)[source]
get_kickstart(buildconfig)[source]

worker Module

class image_builder.worker.KickstartParser

Bases: object

class image_builder.worker.Worker(buildconfig)[source]

Worker class is responsible for the actual creation of the images

add_repo(ksfile, siderepo)[source]

Add a repository to an existing KS file

build_bootiso()[source]

Build boot iso

build_dvd(kickstart)[source]

Builds DVD image

build_live(kickstart)[source]

Live Image

gather_repos(release)[source]

Build repository list using data from the configuration file

get_koji_connection()[source]

Return a Connection to Koji hub

get_nvr(bids)[source]

get NVR given build ID

get_rpms_nvr(nvr, bid)[source]

Take the NVRs and BIDs and return the list of all NVR’s

prep_siderepo(workdir, packages, arch)[source]

prepare a side repository given extra packages