-
Notifications
You must be signed in to change notification settings - Fork 71
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
podvm: Current doc doesn't work for building s390x image in container #649
Comments
\cc @jtumber-ibm @wainersm |
I think the versioning system could be added incrementally, and might not be too difficult to add in this case? |
I think the default options for the image build workflow should be based on amd64 and a base distro release which we test in CI. |
- Add doc to specify the extra build arguments needed for ubuntu s390x in the absence of a code solution. Fixes: confidential-containers#649 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
I've implemented option 2 in #810, but it's worth remembering that we might want to implement a code or versions solution to this rather than documentation, so I don't want to lose the discussion completely. |
Content of commit: - Update the README to include information about trusted profile suppport - Remove confidential-containers#649 reference as this issue has now been closed Signed-off-by: Tia Shah <tia.shah@ibm.com>
- Add doc to specify the extra build arguments needed for ubuntu s390x in the absence of a code solution. Fixes: confidential-containers#649 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
- Add doc to specify the extra build arguments needed for ubuntu s390x in the absence of a code solution. Fixes: confidential-containers#649 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
The current documentation for building the podvm image has a section with an example of building the image with s390x, but it doesn't work correctly.
The issues is (thanks to James Tumber for the debug) with the
UBUNTU_IMAGE_URL
andUBUNTU_IMAGE_CHECKSUM
values that need to be changed for s390x. It also seems we have a bit of confused logic around these which I think might be related to the support of centos and rhel based images:Makefile
has logic which sets theUBUNTU_IMAGE_URL
andUBUNTU_IMAGE_CHECKSUM
appropriately based on the architecture being used:cloud-api-adaptor/podvm/Makefile
Line 10 in f4d87fb
Dockerfile.podvm
however sets these values:cloud-api-adaptor/podvm/Dockerfile.podvm
Lines 26 to 27 in f4d87fb
This results in the s390x build running based on the amd64 ubuntu image that fails without a useful error message:
There are a few approaches we could take to try and fix this:
Dockerfile.podvm
to setting the default values ofUBUNTU_IMAGE_URL
andUBUNTU_IMAGE_CHECKSUM
to set and empty e.g.:this would release in the default release
release-20230107
that was picked being lost though, but means that both the container and local build of pod vm images would release in the same image by deferring all the logic to theMakefile
which isn't the greatest user experience, but would allow the
dockerfile
default release to remain (which might not be desirable)and provide some documentation for users as to how to find the correct value and checksum. This seems a worse user experience still, but gives the greatest customisation for users (but we could just make that optional)
The text was updated successfully, but these errors were encountered: