Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

cacheFrom does not work #388

Open
lliuhaomin opened this issue Sep 6, 2021 · 2 comments
Open

cacheFrom does not work #388

lliuhaomin opened this issue Sep 6, 2021 · 2 comments
Labels

Comments

@lliuhaomin
Copy link

Is there any requirement for the docker version to use this plugin to build? Currently using 19.3.1 docker environment to build, cacheFrom does not work

@lliuhaomin
Copy link
Author

update BuildMojo.java file
if (!cacheFromExistLocally.isEmpty()) { buildParameters.add(new DockerClient.BuildParam("cache-from", encodeBuildParam(cacheFromExistLocally))); }

if (!cacheFromExistLocally.isEmpty()) { buildParameters.add(new DockerClient.BuildParam("cachefrom", new Gson().toJson(cacheFromExistLocally).toString())); }

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant