Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/reference/stacker_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Hub.
`built`: `tag` is required, everything else is ignored. `built` bases this
layer on a previously specified layer in the stacker file.

`scratch`: which is an empty rootfs and can be used to host statically built binaries.

### `import`

The `import` directive describes what files should be made available in
Expand Down Expand Up @@ -110,6 +112,17 @@ import:
- /path/to/file
```

#### `import dest`

The `import` directive also supports specifying the destination path (specified
by `dest`) in the resulting container image, where the source file (specified
by `path`) will be copyied to, for example:
```
import:
- path: config.json
dest: /
```

### `overlay_dirs`
This directive works only with OverlayFS backend storage.

Expand Down
19 changes: 19 additions & 0 deletions docs/whats-new.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# What's New

## [v0.40.1](https://github.com/project-stacker/stacker/releases/tag/v0.40.1)

* Support for `scratch`

Prior to v0.40.1, `stacker` did not support empty root filesystems to be used a
base container image. The support has now been added which can be used to host
statically built binaries.

* Support for `import`ing content into container image

Prior to v0.40.1, copying content into a layer permanently involved bind
mounting a shell such as busybox and invoking appropriate commands using the
`run` directive. Now `import` directive allows for the `dest` option to achieve
the same.

* Some `squashfs` improvements

While build squashfs layers, use `squashfuse_ll` if available which is faster.