-
Notifications
You must be signed in to change notification settings - Fork 88
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
[WIP] Load defaults from versions.yaml for podvm build #1057
[WIP] Load defaults from versions.yaml for podvm build #1057
Conversation
Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
@yoheiueda could you take a look at the Makefile changes (excluding the Makefile.defaults for now) and see if it is worth adding into your #1018 ? |
@jtumber-ibm Your proposed change looks good to me. With your change, we can build a builder image from the remote repo based on centos by this.
And, we can build a builder image from the remote repo based on centos by this.
One thing I noticed is that my proposed Dockefile refactoring requires Another point is that how we can support So, is it possible to parameterize the container image build command like this?
Then, we can change the build command like this.
@bpradipt any comments? |
I think the Makefile.defaults part is work-in-progress, and you are possibly working on a similar idea, but I think we can define a fuction like below to reduce redundancy. (I don't come up with a good function name though.)
|
491213e
to
9095fd5
Compare
@yoheiueda from a quick test it seems that |
Thank you for the investigation! Probably, we can support docker buildx only for the time being. |
wget -q https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${BINARY} -O "$EXE" | ||
chmod +x "$EXE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO downloading executables transparently isn't a good practice. Maybe we could warn that something required is missing instead?
# Defaults to Ubuntu Focal amd64 release image. These variables can be overriden as needed | ||
ARG UBUNTU_IMAGE_URL=https://cloud-images.ubuntu.com/releases/focal/release-20230107/ubuntu-20.04-server-cloudimg-amd64.img | ||
ARG UBUNTU_IMAGE_CHECKSUM=3895e38566e5c2c019f5c6f825ab7570ee34dac6b9142fab0c7e5a78084c4280 | ||
|
||
# Defaults to CentOS 8-stream x86_64 image. These variables can be overriden as needed | ||
ARG CENTOS_IMAGE_URL=https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20220913.0.x86_64.qcow2 | ||
ARG CENTOS_IMAGE_CHECKSUM=8717251f8e4d2fe3e5032799caae89358c1ba68d65a16b5128a59ec6003aac1c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could improve reproducibility and traceability of these build if we don't set any defaults at all. The source of truth should be the versions.yaml
file, right?
Built off of #1018
Files Updated (Excluding changes from 1018)