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 bootc-run target to Makefile #233

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Add bootc-run target to Makefile #233

merged 1 commit into from
Apr 11, 2024

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Apr 10, 2024

This will make it easier for users to run bootc container locally for testing purposes.

This will make it easier for users to run bootc container locally for
testing purposes.

Signed-off-by: Daniel J Walsh <[email protected]>
@@ -80,6 +80,12 @@ bootc: quadlet
@echo " * https://github.com/osbuild/bootc-image-builder"
@echo " * https://github.com/containers/podman-desktop-extension-bootc"

.PHONY: bootc-run
bootc-run:
podman run -d --rm --name $(APP)-bootc -p 8080:8501 --privileged \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this, you'd in theory access the application at localhost:8080?

Copy link
Collaborator

@sallyom sallyom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works for me - the way I've been using it is with the Makefile.common file:

cd recipes/common
make -f Makefile.common BOOTC_IMAGE=quay.io/sallyom/summarizer-bootc:latest APP=summarizer  bootc-run

in that case the APP doesn't have an obvious purpose - so maybe add a NAME and set to be either APP if that's set or some default so that if running from common directory you don't need to set APP or NAME that at all

@rhatdan
Copy link
Member Author

rhatdan commented Apr 11, 2024

You should do this in the summarizor directory and it should work.

As far as the 8080, this is what the default demonstration in the bifrost doc said.

@rhatdan rhatdan merged commit 29dbe36 into containers:main Apr 11, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants