Commit Graph

33 Commits

Author SHA1 Message Date
Neil Hanlon 4de8ad7cdb
better implementation of timeout argument 2022-11-23 17:16:48 -05:00
Neil Hanlon 0fb7bf938e
add timeout option for build-image 2022-11-23 16:27:50 -05:00
Neil Hanlon 5b620d4314
Vbox needs box.ovf 2022-11-23 10:43:54 -05:00
Neil Hanlon 4e4a4bb123
switch to NamedTemporaryFile instead of rolling our own 2022-11-19 20:14:31 -05:00
Neil Hanlon 98797d1b6c
add Virtualbox vagrantfile, reintroduce convertOptions 2022-11-19 19:08:05 -05:00
Neil Hanlon b9e8f486c1
fixes for Vagrant images 2022-11-19 18:45:51 -05:00
Neil Hanlon 57ba3ca98c
rename metadata file to not conflict 2022-11-19 17:09:00 -05:00
Neil Hanlon 8b099f255c
fixes for vmware 2022-11-19 17:01:55 -05:00
Neil Hanlon 4777fc3db0
begin work on composing vagrant boxes 2022-11-19 16:27:03 -05:00
Neil Hanlon 09567eb82e
RPI image needs to be an xz'd .raw 2022-11-19 13:21:50 -05:00
Neil Hanlon 435206c1ca
add rpi image 2022-11-18 23:46:30 -05:00
Neil Hanlon 398b146982
VMware should be vmdk 2022-11-13 18:47:39 -05:00
Neil Hanlon e4c0eb2abc
add vmware 2022-11-13 18:20:13 -05:00
Neil Hanlon afb3576a3d
Add OCP building back 2022-10-19 22:28:57 -04:00
Neil Hanlon f7bff05735
hotfix: need to initialize var 2022-10-11 20:50:07 -04:00
Neil Hanlon fb37eb1bbc
add OCP to the necessary locations 2022-10-11 20:40:37 -04:00
Neil Hanlon 5a2c16ff28
Checkout kickstarts on every run, instead of when building the image 2022-10-11 11:55:39 -04:00
Louis Abel 6731e3f4a5
add fedora major version for future use 2022-08-28 23:21:54 -07:00
Neil Hanlon 03d0c585ae
add gitignore
* change capitalization for vbox
2022-07-13 23:33:23 -04:00
Neil Hanlon 20bf0812db
revert to stg url now that CDN is fixed. add in some additional metadata for builds and cleanup output for containers 2022-07-11 21:15:31 -04:00
Neil Hanlon 1f94680924
compress genericcloud and vagrant images by default
* add azure support
* use download.r.o url
2022-07-10 21:58:12 -04:00
Neil Hanlon 007f571224
Fix path to containerized azure prep script 2022-07-08 17:31:30 -04:00
Neil Hanlon 3cccd03d55
Build azure images, too 2022-07-08 17:29:32 -04:00
Neil Hanlon 767362aceb
Various image building changes
* Add UBI container specification
* Change ouput path to simplify copying operations
* Install patches for imagefactory and fixed version of oz for RHEL in
  container
    * Please ignore the RPM in this repo for now...
* Add conversion steps for Vagrant, EC2 images
* Fix KSes if they have a $basearch variable by subtitution
* Add usefbx variable to ensure we have an output for debugging
2022-07-08 13:30:15 -04:00
Neil Hanlon 8954987365
Remove fedora_release var, no longer needed 2022-07-04 17:55:46 -04:00
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