-
Notifications
You must be signed in to change notification settings - Fork 519
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
Cache buildpack builds in a local docker volume #2463
Comments
Now that I'm revisiting this issue again, I'm observing that If I do
I notice that these docker volumes get created automatically: $ docker volume ls
DRIVER VOLUME NAME
local pack-cache-rohankanojiabot_spring-boot3-demo-jkube_latest-ad8ffa513fae.build
local pack-cache-rohankanojiabot_spring-boot3-demo-jkube_latest-ad8ffa513fae.launch I think we can just add configuration to clear old cache using |
Could we add something in our test suites (E2E or IT) that verifies that these volumes are created? |
I'm not able to see any integration test related to buildpacks build strategy. Shall I add integration test for buildpacks build strategy in scope of this issue or create a new issue? |
New issue |
Component
JKube Kit
Task description
Description
Part of #439
Buildpack builds can involve downloading artifacts from multiple sources in a single build. I've even seen various intermittent failures due to network errors during
pack build
.We should enable caching buildpack builds in a local docker volume so that subsequent builds are faster. This would provide much better development experience. Name of the local docker volume should be directly mapped to the project / container image name.
We can probably configure this behavior via the
nocache
configuration option that we already have at the moment. If user explicitly enables nocache, we won't cache buildpack build.Expected Behavior
As a user using JKube to build container images leveraging buildpacks, I want to have faster subsequent builds by relying on the build cache, so that I can save time and avoid intermittent network errors.
Acceptance Criteria
Given:
nocache
option.buildpacks
usingjkube.build.strategy
property / plugin configurationWhen: User performs
k8s:build
Then: BuildPackConfiguration cache is added by default during
k8s:build
The text was updated successfully, but these errors were encountered: