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

Accelerated container image for AMD #316

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Accelerated container image for AMD #316

merged 1 commit into from
Apr 23, 2024

Conversation

kwozyman
Copy link
Collaborator

I've added the first bootc bare metal accelerated bootc container image and it's README.


.PHONY: amd
amd:
make -C amd/ image
Copy link
Member

Choose a reason for hiding this comment

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

I think you would need to change this to
make -C amd/ image FROM=$(FROM) REGISTRY=$(REGISTRY) REGISTRY_ORG=$(REGISTRY_ORG)...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think these get inherited as environment variables. At least on my Fedora 39 a make amd REGISTRY=foo gets me the correct name just with the above

Copy link
Member

Choose a reason for hiding this comment

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

If they do that is great, ignore my comment.

"${CONTAINER_TOOL}" build \
--file Containerfile \
--tag "${REGISTRY}/${REGISTRY_ORG}/${IMAGE_NAME}:${IMAGE_TAG}" \
--build-arg BASEIMAGE=${FROM} \
Copy link
Member

Choose a reason for hiding this comment

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

In the other repos we have been using

--from $(FROM) rather then --build-arg.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,8 @@
ARG BASEIMAGE="quay.io/centos-bootc/centos-bootc:stream9"

FROM ${BASEIMAGE}
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to use FROM quay.io/centos-bootc/centos-bootc:stream9 and use `--from $(FROM) in the Makefile like we do in the rest of the repo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@rhatdan
Copy link
Member

rhatdan commented Apr 23, 2024

Looks good, just a couple of nits.

@rhatdan
Copy link
Member

rhatdan commented Apr 23, 2024

@kwozyman you need to sign your commits, and then we can merge.

Signed-off-by: Costin Gamenț <cgament@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Apr 23, 2024

LGTM

@rhatdan rhatdan merged commit 579eb45 into main Apr 23, 2024
1 check 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