diff --git a/docs/reference/stacker_file.md b/docs/reference/stacker_file.md index 9901f5d..1392d2a 100644 --- a/docs/reference/stacker_file.md +++ b/docs/reference/stacker_file.md @@ -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 @@ -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. diff --git a/docs/whats-new.md b/docs/whats-new.md index af95c85..ed6519a 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -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.