You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/app-developer-guide/export-to-oci-layout.md
+54-9Lines changed: 54 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ The configuration shows the experimental mode was **enabled** and a local direct
37
37
38
38
### 2. Build the app
39
39
40
-
If you haven't already, please follow the steps to [build an app](/docs/app-developer-guide/build-an-app).
40
+
If you haven't already, please follow the steps to [build an app](/docs/app-developer-guide/build-an-app), once you managed to build a sample application you can try exporting the sample application to disk in OCI layout format.
41
41
42
42
The OCI layout feature must be enabled using the convention `oci:<path/to/save/image>` in the `<image-name>` parameter when invoking `pack build`.
If you are interested on keep playing with the image in OCI layout format, one tool you can take a look is [umoci](https://umo.ci/) it can help you to create a
81
+
[runtime bundler](https://github.com/opencontainers/runtime-spec) that can be executed with another tool like [runc](https://github.com/opencontainers/runc)
70
82
71
83
---
72
84
73
85
## Extra configuration
74
86
75
87
### Skip saving your run-image layers on disk
76
88
77
-
If you don't need your `run-image` layers on disk, you can skip them using `--sparse` flag in your `pack build` command invocation
89
+
Before using this option we suggest to remove your local layout directory (the one configured in your pack config.toml with the key `layout-repo-dir`) and
90
+
your application image folder (if you are planning to use the same folder), the reason for this is pack doesn't remove the blobs saved in the `layout-repo-dir` if you use the `--sparse` flag
91
+
92
+
If you don't need your `run-image` layers on disk, you can skip them using `--sparse` flag in your `pack build` command invocation.
0 commit comments