Skip to content

Commit 5377cf6

Browse files
committed
+ Document optional cache mount for docker-image builder
1 parent 88e0054 commit 5377cf6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

book/src/builders/docker-image.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Docker Image generator:<br>**`docker-image`**
22

3-
| Mount name | Type | Usage |
4-
|:-----------|:-------|:------------------------------------------------------|
5-
| `input` | Layers | The Raptor build target to genrate as a docker image. |
6-
| `output` | File | Points to the resulting docker image file. |
3+
| Mount name | Type | Usage |
4+
|:--------------------------|:-------|:---------------------------------------------------------------------------------------------|
5+
| `input` | Layers | The Raptor build target to genrate as a docker image. |
6+
| `output` | File | Points to the resulting docker image file. |
7+
| `cache`<br>**(Optional)** | Simple | Cache for tar files of built layers.<br>Will save time when repeating layers between builds. |
78

89
This builder generates a Docker image from a Raptor target.
910

@@ -40,6 +41,9 @@ rbuild = "raptor-builders"
4041
target = "$rbuild.docker-image" # <-- builder is specified here
4142
input = ["test"]
4243
output = "test.tar"
44+
## to speed up builds with shared layers,
45+
## specify a cache directory:
46+
# cache = "/tmp/docker-image-cache"
4347
```
4448
~~~
4549

0 commit comments

Comments
 (0)