-
Notifications
You must be signed in to change notification settings - Fork 789
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
Use Case: How to enable Buildkit when building docker image from source code #1337
Comments
sorry, not support buildkit. Rainbond v5.9.x pipeline feature will support custom builds |
Which features of BuildKit do you think attract you? Currently, the source code build is built using buildpack. You can refer to this project: https://github.com/goodrain/builder If you mean Dockerfile build, In the v5.9.0 version of Rainbond, Dockerfile build is no longer dependent on Docker, https://github.com/GoogleContainerTools/kaniko is used by default to build |
@yangkaa RUN --mount=type=cache,target=/root/.m2 ./mvnw install -DskipTests |
Unfortunately, with reference to this GoogleContainerTools/kaniko#1568, we may not support this feature in the short term. But you might have an alternative, Buildah already supports this feature. refer: containers/buildah#3452, Podman uses buildah to build images. So you can customize your CI process and use Podman to build the image. On Rainbond, use mirrors to build your component. When your code is submitted, the CI process is triggered and the image built by Podman is pushed to the repository. Finally trigger the construction of Rainbond image. |
Stale issue, I will close it, please open again if there is a problem. |
The requirements?
Enable
Buildkit
when building docker image from source codeWay:
https://docs.docker.com/engine/reference/builder/#buildkit
The text was updated successfully, but these errors were encountered: