Implement build cache based on history array

Based on work by KJ Tsanaktsidis

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: KJ Tsanaktsidis <kjtsanaktsidis@gmail.com>
This commit is contained in:
Tõnis Tiigi 2016-09-22 14:38:00 -07:00 committed by Tonis Tiigi
parent 59e38197ff
commit 9f20fabc69
1 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,13 @@ func imageBuildOptionsToQuery(options types.ImageBuildOptions) (url.Values, erro
return query, err return query, err
} }
query.Set("labels", string(labelsJSON)) query.Set("labels", string(labelsJSON))
cacheFromJSON, err := json.Marshal(options.CacheFrom)
if err != nil {
return query, err
}
query.Set("cachefrom", string(cacheFromJSON))
return query, nil return query, nil
} }