Commit Graph

8 Commits

Author SHA1 Message Date
Neil Hanlon fe4daffb25
Changes for oz/imagefactory config naming 2022-07-04 16:35:58 -04:00
Neil Hanlon 55abe763ef
Refactor Architecture class and fix names for output files 2022-07-04 14:44:20 -04:00
Neil Hanlon 7365ca6b06
various cleanup of image build script
* reorder imports
* pass cli arguments directly into class for simplification and
  segregation
* reorder class variables
* Some error checking to ensure we're writing what we want to
* Allow copy(upload?) step to be skipped
* properly consume stdout and stderr from popen to avoid exception when
  FD is closed but trying to be read by the subprocess_log function
2022-07-04 12:09:10 -04:00
Neil Hanlon 3cf47dd85c
remove final dependencies on results variable
* put logging code into runCmd method to reduce repeated code
2022-07-03 22:48:12 -04:00
Neil Hanlon 361c155481
Containerize and refactor image building
* Add new fedora container to run imagefactory
* Make architecture class from py attrs and make it raise exceptions
* Change build-image script to primarily invoke imagefactory directly. A
  second wrapper will be added to support running in kubernetes if
needed.
2022-07-03 22:29:35 -04:00
Neil Hanlon 0deaae0c65
update github workflow to build image in the right namespace 2022-06-28 09:39:01 -04:00
Neil Hanlon e60f6524a2
Implement a feature to assist in generating various images
* use a flag to determine if we want an RC or not
* Convert rldict and sigdict to an AttributeDict to allow access via
  __getattr__
* add fedora_release variable to configs for controlling icicle
  templates
* build_image.py script to generate per-architecture XML files used by
  imagefactory
* refactor time to call utcnow() once
* add jinja types to development dependencies until we move past jinja
  2.x
* Generate TDL templates per architecture for each image variant on
  demand
* Generate imagefactory and copy commands to execute image build
* Refactor Kubernetes job template to be generic for all current jobs
2022-06-28 09:33:15 -04:00
Neil Hanlon 4bf6fb6618
Implement a feature to assist in generating various images
* use a flag to determine if we want an RC or not
* Convert rldict and sigdict to an AttributeDict to allow access via
  __getattr__
* add fedora_release variable to configs for controlling icicle
  templates
* build_image.py script to generate per-architecture XML files used by
  imagefactory
* refactor time to call utcnow() once
* add jinja types to development dependencies until we move past jinja
  2.x
* Generate TDL templates per architecture for each image variant on
  demand
* Generate imagefactory and copy commands to execute image build
* Refactor Kubernetes job template to be generic for all current jobs
2022-06-28 09:33:13 -04:00