Closed goller closed 11 months ago
@goller This version only support build FROM overlaybd image, and has some compatibility problems with normal OCI images. "overlaybd/ubuntu:0705" is not an overlaybd image. The images under overlaybd are not officially released overlaybd images, only those referenced in the documentation with the "_obd" suffix are overlaybd images. The overlaybd repository contains only some test images and it is recommended to convert your own overlaybd images for build.
We have another new version of buildkit compatible with normal OCI image. We're trying to merge it into mainline buildkit, but it's not progressing well and there hasn't been further follow-up recently. I will be placing this version on github.com/data-accelerator/buildkit.git shortly, and then I would kindly ask you to try it out again.
@goller you may try branch 202312 in github.com/data-accelerator/buildkit.git This version is compatible with standard OCIv1 image builds. When building from an OCIv1 image, the output is an OCIv1 image, and when building from an OverlayBD image, the output is an OverlayBD image. You can determine whether it is built in overlaybd by observing whether the full FROM image is downloaded during the pull.
@goller you may try branch 202312 in github.com/data-accelerator/buildkit.git This version is compatible with standard OCIv1 image builds. When building from an OCIv1 image, the output is an OCIv1 image, and when building from an OverlayBD image, the output is an OverlayBD image. You can determine whether it is built in overlaybd by observing whether the full FROM image is downloaded during the pull.
@liulanzheng I will try that out now. Thank you for the update!
Hi @liulanzheng the new buildkit branch does indeed work ! Thank you !
I'm excited for this to be in mainline buildkit.
What happened in your environment?
Hello! I'm trying to use overlaybd and I'm having problems with parent snapshots not existing.
After following the quickstart guide I am not able to build images via buildkit. In the section below I've outlined all versions and ran to get the following error:
Any ideas about what this might be?
Here are the overlaybd logs:
Here are the overlaybd-snapshotter logs:
What did you expect to happen?
No response
How can we reproduce it?
Repro
Started machine in aws us-east-2 running RHEL 9.3 and load
target_core_user
.install requirements for overlaybd
install requirements for buildkit
install overlaybd version 1.0.7
set logs to debug
edit /etc/overlaybd/overlaybd.json and set
logLevel
to 0.Start overlaybd
install overlaybd-snapshotter 1.0.2
set logs to debug
edit /etc/overlaybd-snapshotter/config.json and set
verbose
to"debug"
start overlaybd-snapshotter
install containerd 1.7.10
Configure config.toml
Edit and add this section.
Edit and update this section:
Start containerd
Buildkit
Build buildkit
Start buildkit
create an example dockerfile
Attempt build:
What is the version of your Accelerated Container Image?
1.0.2
What is your OS environment?
RHEL 9.3
Are you willing to submit PRs to fix it?