debian-forge-composer/internal
Tomas Hozza 264e554971 cloud/gcp: introduce ComputeImageInsert() method
Introduce a new `ComputeImageInsert()` method for importing images into
GCP. It uses the `compute.Images.Insert()` API [1], which has many
advantages over the currently used way of importing images using the
CloudBuild API. The advantages are mainly that the image is imported as
is and no additional cache files or VMs are created as part of the
import process. Therefore there is no need to do additional cleanup of
cache files after importing the image.

In addition, the import itself is approximately 30% faster for RHEL
images when using the `Insert()` call.

Nevertheless the `Insert()` call accepts only gzip-ed tarball with a RAW
disk, unlike the `Import()` call, which accepts basically any virtual
disk format.

[1] https://cloud.google.com/compute/docs/reference/rest/v1/images/insert

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2022-04-14 19:07:31 +01:00
..
auth api/{cloud,worker}: used channel name based on JWT claims for new jobs 2022-03-08 12:07:00 +01:00
blueprint blueprint: sanitize user home directories 2022-03-28 14:08:57 +02:00
boot tests: update IDs in Openstack image boot test 2022-02-14 12:13:18 +02:00
client client: Add Cancel function and tests 2022-02-18 09:31:07 +01:00
cloud cloud/gcp: introduce ComputeImageInsert() method 2022-04-14 19:07:31 +01:00
cloudapi cloudapi: specify min_size type 2022-04-14 10:03:06 +02:00
common internal/common: introduce function to convert data sizes 2021-11-02 18:32:47 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk RHEL-90: use XBOOTLDR partition GUID for /boot 2022-03-24 15:40:10 +01:00
distro RHEL-84: add gce-rhui image type 2022-04-14 19:07:31 +01:00
distroregistry distroregistry: enable CS9 2022-02-18 10:39:08 +00:00
jobqueue test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
jsondb test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
kojiapi test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
mocks worker: NewServer: move config parameters to a new Config struct 2022-03-08 12:07:00 +01:00
osbuild1 distro: deduplicate groupStageOptions() in RHEL pipelines 2022-04-06 12:09:09 +02:00
osbuild2 osbuild2/tar: introduce NewTarStagePipelineTreeInputs() 2022-04-14 19:07:31 +01:00
ostree ostree: rename errors and introduce ParameterComboError 2022-02-23 11:08:24 +01:00
prometheus metrics: change job metrics namespace 2022-02-08 15:57:12 +01:00
reporegistry reporegistry: remove unused ReposByArch() function 2022-03-09 23:22:06 +00:00
rhsm internal/rhsm: implement fallback to the previous mechanism 2021-08-09 12:40:23 +02:00
rpmmd RHEL-90: add gce image type 2022-04-14 19:07:31 +01:00
store RHEL-86: add gce-rhui image type 2022-04-14 19:07:31 +01:00
target OSBuild - add support for generic S3 services 2022-04-07 15:01:01 +02:00
test internal/test: add small library for tests 2022-03-08 12:07:00 +01:00
upload koji: fix excessive logging & monitoring 2022-04-05 23:48:30 +02:00
weldr weldr: update our use of BurntSushi/toml 2022-04-08 09:45:46 +02:00
worker cloudapi: add build job dependency checks 2022-04-13 10:31:53 +02:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00