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

Use local container image, don't require fetching from registry #90

Closed
noelmiller opened this issue Jan 7, 2024 · 8 comments
Closed

Comments

@noelmiller
Copy link

For testing containers before pushing them to well-known container registries, it would be nice to utilize this tool to build images from local or private container registries.

@cdrage
Copy link
Contributor

cdrage commented Jan 9, 2024

@ondrejbudai @deboer-tim @cgwalters

This is a blocker for Podman Desktop, we would need this in order to avoid having to podman push the image to run bootc-image-builder

@ondrejbudai
Copy link
Member

@kingsleyzissou are working on it. He's sick today, though, so I'm not sure when we will be able to finish that.

@noelmiller
Copy link
Author

I was able to get this work recently using the following example:

sudo podman run \
    --rm \
    -it \
    --privileged \
    --pull=newer \
    --net=host \
    --security-opt label=type:unconfined_t \
    -v $(pwd)/config.json:/config.json \
    -v $(pwd)/output:/output \
    quay.io/centos-bootc/bootc-image-builder:latest \
    --type qcow2 \
    --config /config.json \
    --tls-verify=false \
    localhost:5000/silverblue-smoketest:latest

@ondrejbudai
Copy link
Member

We want to support the local container storage without an intermediate local registry, though. Let's reopen this until the proper thing lands.

@cgwalters cgwalters changed the title Use Local or Private Container Registry Use local container image, don't require fetching from registry Jan 26, 2024
@kingsleyzissou
Copy link
Contributor

There is a WIP pr for this here osbuild/osbuild#1550

@vrothberg
Copy link
Contributor

We chatted about this issue this week and my understanding is that it's close to being fixed. Since osbuild/osbuild#1550 has been closed, can we link the missing pieces here to facilitate tracking the progress?

@ondrejbudai
Copy link
Member

@vrothberg
Copy link
Contributor

Great work, thanks to you and the team, @ondrejbudai !

deboer-tim added a commit to containers/podman-desktop-extension-bootc that referenced this issue Mar 20, 2024
The Bootc image builder added support to build from local storage via
osbuild/bootc-image-builder#90.

This updates to the current bootc image builder image, and adds the two
new required options:
 - --local, should be temporary/default soon
 - volume mapping to /var/lib/containers/storage

Signed-off-by: Tim deBoer <[email protected]>
deboer-tim added a commit to containers/podman-desktop-extension-bootc that referenced this issue Mar 20, 2024
The Bootc image builder added support to build from local storage via
osbuild/bootc-image-builder#90.

This updates to the current bootc image builder image, and adds the two
new required options:
 - --local, should be temporary/default soon
 - volume mapping to /var/lib/containers/storage

Signed-off-by: Tim deBoer <[email protected]>
deboer-tim added a commit to containers/podman-desktop-extension-bootc that referenced this issue Mar 20, 2024
The Bootc image builder added support to build from local storage via
osbuild/bootc-image-builder#90.

This updates to the current bootc image builder image, and adds the two
new required options:
 - --local, should be temporary/default soon
 - volume mapping to /var/lib/containers/storage

Signed-off-by: Tim deBoer <[email protected]>
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

5 participants