Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to upload the image to different cloud provider #10

Open
praveenkumar opened this issue Jan 9, 2023 · 8 comments
Open

Add script to upload the image to different cloud provider #10

praveenkumar opened this issue Jan 9, 2023 · 8 comments

Comments

@praveenkumar
Copy link
Member

We should have a script which takes bundle and cloud provider as input and then create the image which is uploaded to respective cloud provider.

@praveenkumar praveenkumar changed the title Add script to upload the images to different cloud provider Add script to upload the image to different cloud provider Jan 9, 2023
@tsebastiani
Copy link
Member

will push a draft script that I made for AWS as starting point

@lmilbaum
Copy link
Contributor

We should have a script which takes bundle and cloud provider as input and then create the image which is uploaded to respective cloud provider.

What bundle stands for?

@adrianriobo
Copy link
Contributor

Would prefer to keep this out of this project I started to make a draft based on packer but there are some caveats I found with it...like only post processor allowing import for gcp and aws... azure, openstack or any other should be done with ad hoc bash code...

Code for packer can be checked at:

adrianriobo/crc-cloud-builder#1

@adrianriobo
Copy link
Contributor

At least this should be reusable

@adrianriobo
Copy link
Contributor

What bundle stands for?

This is the compressed asset holding the qcow2 image which needs to be imported on the providers. This is an example

@lmilbaum
Copy link
Contributor

Thanks @adrianriobo. If I understand you correctly, the artifacts of such a script would be something like AWS AMIs. Those are used by crc-cloud to spin the environment. If that is the case then maybe those artifacts should be generated in a different git repo. Does that make sense?

@praveenkumar
Copy link
Member Author

I was thinking of end to end enablement for the user who doesn't have the required image on the cloud from his account (as of now assume these images are not public) so the user first need to create the cloud image and this tool/script provide that functionality using the version user should have the image as part of his cloud account and then next step can be taken like provision the VM and configure to run crc.

If it is just a single script then we can keep it in the same repo in different folder like image-builder and have a entry on README how to consume it.

@lmilbaum
Copy link
Contributor

I was thinking of end to end enablement for the user who doesn't have the required image on the cloud from his account (as of now assume these images are not public) so the user first need to create the cloud image and this tool/script provide that functionality using the version user should have the image as part of his cloud account and then next step can be taken like provision the VM and configure to run crc.

If it is just a single script then we can keep it in the same repo in different folder like image-builder and have a entry on README how to consume it.

Ah. OK. Valid point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants