Skip to content
Merged
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
14 changes: 7 additions & 7 deletions docs/get_started/hello_stacker_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ simple "Hello Stacker!" script into an OCI container image.
hello-stacker:
from:
type: docker
url: docker://ubuntu:latest
url: docker://zothub.io/tools/busybox:stable
run: |
mkdir -p /hello-stacker-app
echo 'echo "Hello Stacker!"' > /hello-stacker-app/hello.sh
Expand All @@ -19,8 +19,8 @@ hello-stacker:
__hello-stacker__.

The `from` section defines that `hello-stacker` image builds on top of an
existing image called `ubuntu:latest`, and that the base image is of type
`docker` downloaded from URL `docker://ubuntu:latest`.
existing image called `zothub.io/tools/busybox:stable`, and that the base image is of type
`docker` downloaded from URL `docker://zothub.io/tools/busybox:stable`.

The `run` section defines a build script. This script is executed on top of the
ubuntu image's root file system, creates a file called
Expand All @@ -35,7 +35,7 @@ stacker file name `hello_stacker.yaml`.
```bash title="Hello Stacker Build"
$ stacker build -f hello_stacker.yaml
preparing image hello-stacker...
loading docker://ubuntu:latest
loading docker://zothub.io/tools/busybox:stable
Copying blob cf92e523b49e done
Copying config cb52c703ef done
Writing manifest to image destination
Expand All @@ -45,7 +45,7 @@ Storing signatures
+ chmod +x /hello-stacker-app/hello.sh
filesystem hello-stacker built successfully
```
stacker build used `hello-stacker.yaml` as input, downloaded the `ubuntu:latest`
stacker build used `hello-stacker.yaml` as input, downloaded the `zothub.io/tools/busybox:stable`
image from docker hub and generated an OCI image with tag `hello-stacker`. We
can verify this using `stacker inspect`:

Expand All @@ -58,7 +58,7 @@ Annotations:
io.stackeroci.stacker.stacker_yaml: hello-stacker:
from:
type: docker
url: docker://ubuntu:latest
url: docker://zothub.io/tools/busybox:stable
run: |
mkdir -p /hello-stacker-app
echo 'echo "Hello Stacker!"' > /hello-stacker-app/hello.sh
Expand Down Expand Up @@ -117,7 +117,7 @@ to the stacker file, less things happen:
```bash title="stacker caching"
$ stacker build -f hello_stacker.yaml
preparing image hello-stacker...
loading docker://ubuntu:latest
loading docker://zothub.io/tools/busybox:stable
Copying blob cf92e523b49e skipped: already exists
Copying config cb52c703ef done
Writing manifest to image destination
Expand Down