Skip to content

Commit 65053fb

Browse files
authored
Merge branch 'main' into fix/run-image-toml
2 parents 86fa59c + a0cd7cf commit 65053fb

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
+++
2+
title="Specify export target"
3+
weight=50
4+
+++
5+
6+
Tell `pack` where you want your application image to be saved.
7+
8+
<!--more-->
9+
10+
By default, when you `pack build` an application, the image will be saved to a daemon, such as Docker or [Podman][podman],
11+
and you can view the image using a command such as `docker image ls`.
12+
13+
However, you could also choose to "publish" the application to an OCI registry, such as Docker Hub or Google Artifact Registry,
14+
or even to a local registry, by providing the `pack build --publish` flag.
15+
16+
Or, you could save the image in OCI layout format on disk by providing the `--layout` flag.
17+
See [here][OCI layout] for more information about working with layout images.
18+
19+
## FAQ: What am I using the daemon for?
20+
21+
Buildpacks always need to run in a containerized environment.
22+
Therefore, even when you publish the application image to a registry,
23+
`pack` is still using a daemon under the hood to create the build container(s) where buildpacks run.
24+
25+
The relationship between the build container and the application container can be seen in the diagram below:
26+
27+
![build diagram](/images/build-container-app-container.svg)
28+
29+
[podman]: /docs/for-app-developers/how-to/special-cases/build-on-podman
30+
[OCI layout]: /docs/for-app-developers/how-to/special-cases/export-to-oci-layout
Lines changed: 1 addition & 0 deletions
Loading

tools/get_pack_commands.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
gendocFrontmatterTemplate = `+++
2323
title="%s"
2424
no_edit="true"
25-
aliases=[ "/docs/tools/pack" ]
25+
aliases=[ "%s" ]
2626
+++
2727
<!--more-->
2828
`
@@ -32,7 +32,8 @@ var filePrepender = func(filename string) string {
3232
name := filepath.Base(filename)
3333
name = strings.Replace(name, ".md", "", -1)
3434
presentationName := strings.Replace(name, "_", " ", -1)
35-
return fmt.Sprintf(gendocFrontmatterTemplate, presentationName)
35+
alias := fmt.Sprintf("/docs/tools/pack/cli/%s", name)
36+
return fmt.Sprintf(gendocFrontmatterTemplate, presentationName, alias)
3637
}
3738

3839
var linkHandler = func(name string) string {

0 commit comments

Comments
 (0)