-
Notifications
You must be signed in to change notification settings - Fork 64
Supporting single vs multi arch images in a stack #244
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
Comments
Instead of using a global environment variable in the devfile, different architecture support will need to use different devfile file. The different architecture support will be handled by having devfiles with different extensions, e.g. devfile.yaml, devfile_x86.yaml and devfile_s390x and devfile_ppc64le.yaml.
|
Blocked by #239 for providing global attribute support |
I've put up a draft design on the two ways in the document https://docs.google.com/document/d/1MTgxy2EAFYqvN7Twtbr_iWlG9xsghOyI89RRILxvsqY/edit#heading=h.esvxv0e8cpjx |
We'll take a simple approach that we'll no longer provide native support for allowing multiple versions of devfiles with different architecture in a given stack. We'll:
In the future, if it turns out there are more use case that needs to provide different architecture support, we'll reconsider to provide support for case #1 in https://docs.google.com/document/d/1MTgxy2EAFYqvN7Twtbr_iWlG9xsghOyI89RRILxvsqY/edit#heading=h.esvxv0e8cpjx. |
Issue Update:
|
The devfile currently contains image information as part of the container component information. This works well if one single image can be run in a different environment or system architecture, e.g. images that can run on p and z may be different from other images. With the current devfile 2.0 spec, the stack provider will need to provide a different stack to allow different images to be run on different system architectures.
Here is a proposed solution for resolving this:
PROCESSOR_ARCHITECTURE
.image
field, the user can use the${PROCESSOR_ARCHITECTURE}
reference to control the path of the image. To keep the implementation simple, the image URL can simply have that variable as part of the image location. (The alternative is to have an explicit list of different images based on different architectures.)Example of variable usage:
processorArchitecture
field in metadata (separated by,
for a list of multiple entries)We can have 2 models:
The text was updated successfully, but these errors were encountered: