Skip to content

devtools-qe-incubator/cloud-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-importer

This is a small tool to import and manage private images to cloud providers. It basically automate (and optimize) the commands you would need to run otherwise to import an image as a image on a cloud provider.

In addition to the import command it offers a share command to allow share images accross accounts. Initially the image imported is private to the account which run the tool. In order to allow to use the image from a different account we would need to run the share command.

RHEL AI

In order to test RHEL AI on AWS we need to import the image according to RHEL AI installation guide this tool will run those steps for us. Alhough previously the raw image should be donwloaded by an authenticated user to agree with EULA License.

To run the tool we can use the OCI container:

podman run --rm --name import-rhelai -d \
    -v ${PWD}:/workspace:z \
    -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
    -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
    -e AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION} \
    quay.io/devtools-qe-incubator/cloud-importer:v0.0.1 rhelai aws \
        --backed-url "file:///workspace" \
        --raw-image-path "/workspace/rhel-ai-nvidia-aws-1.3.2-1736778584-x86_64.raw" \
        --ami-name "rhel-ai-nvidia-aws-1.3.2" \
        --debug \
        --debug-level 9

podman logs -f import-rhelai

Openshift Local

In order to run Openshift Local we need to transform the bundle generated by snc then the image will be uploaded as cloud provider image and will be available to create ephemeral clusters.

To run the tool we can use the OCI container:

podman run --rm --name import-openshift-local -d \
    -v ${PWD}:/workspace:z \
    -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
    -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
    -e AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION} \
    quay.io/devtools-qe-incubator/cloud-importer:v0.0.1 openshift-local aws \
        --backed-url "file:///workspace" \
        --bundle-url ${BUNDLE_URL} \
        --shasum-url ${SHASUM_URL} \
        --arch ${ARCH} \
        --debug \
        --debug-level 9

podman logs -f import-openshift-local

About

This is a small project to import snc bundles as images for cloud providers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •