Skip to content

Commit e754ead

Browse files
committed
introduce no_cache and pull to force a full rebuild
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 846cabc commit e754ead

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

build.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,17 @@ build:
274274
- "com.example.label-with-empty-value"
275275
```
276276

277+
### no_cache
278+
279+
`no_cache` disables image builder cache and enforce a full rebuild from source for all image layers. This only
280+
applies to layers declared in the Dockerfile, referenced images COULD be retrieved from local image store whenever tag
281+
has been updated on registry (see #pull).
282+
283+
### pull
284+
285+
`pull` require the image builder to pull referenced images (`FROM` Dockerfile directive), even if those are already
286+
available in the local image store.
287+
277288
### shm_size
278289

279290
`shm_size` set the size of the shared memory (`/dev/shm` partition on Linux) allocated for building Docker image. Specify

schema/compose-spec.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
"labels": {"$ref": "#/definitions/list_or_dict"},
9696
"cache_from": {"type": "array", "items": {"type": "string"}},
9797
"cache_to": {"type": "array", "items": {"type": "string"}},
98+
"no_cache": {"type": "boolean"},
9899
"network": {"type": "string"},
100+
"pull": {"type": "boolean"},
99101
"target": {"type": "string"},
100102
"shm_size": {"type": ["integer", "string"]},
101103
"extra_hosts": {"$ref": "#/definitions/list_or_dict"},

0 commit comments

Comments
 (0)