twoliter
twoliter copied to clipboard
add repack-variant (OLD)
Description of changes:
This PR is a work in progress to introduce functionality to repackage a variant.
buildsys: add repack-variant target
Add the the initial target for repackaging a Bottlerocket variant. This
target will skip the traditional workflow of building packages and
using `rpm2img`. Instead the build system will point to a yet to be
implemented `img2img` tool.
buildsys: preliminary housekeeping
Adjusts some things in the build system for preliminary support for an
additional build target. Removes some unnecessary checks, references,
and dependencies. Renames Dockerfile to build.Dockerfile and adds a
common argument for future build targets to skip cleanup if desired.
buildsys: add support for custom CA certificates
Rather than having the CA certificate bundle installed as a package, the
build system will pull the bundle from the Bottlerocket SDK. This can be
overridden with a local CA bundle by passing
BUILDSYS_CACERTS_BUNDLE_OVERRIDE.
Testing done:
- [x] Build Bottlerocket with default CA certificates in Bottlerocket SDK.
- [x] ~~Build Bottlerocket with custom CA certificates in
/certs.~~ - [x] Build Bottlerocket with custom CA certificates using BUILDSYS_CACERTS_BUNDLE_OVERRIDE.
- [x] Build
aws-k8s-1.27(no secure boot). - [x] Build
aws-k8s-1.28(secure boot). - [x] Repack
aws-k8s-1.27(no secure boot). - [x] Repack
aws-k8s-1.28(secure boot). - [x] Repack
vmware-k8s-1.28.
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.
- Move
symlink_imagetoimghelper. - Prevent
buildsysfrom deleting repacked images if repacking a second time.
Addressed most feedback, but still need to investigate some things related to standard output and other variants.
Added support for qcow2 and ova/vmdk.
Superseded by #231.