Skip to content

Commit

Permalink
docs: change import to imports in tutorial
Browse files Browse the repository at this point in the history
Signed-off-by: mbshields <[email protected]>
  • Loading branch information
mbshields committed Jun 24, 2024
1 parent b18dac8 commit 6588805
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/get_started/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The rebuild is shorter because stacker caches all of the inputs to a build, and

> :bulb: Stacker's metadata can be cleaned with `stacker clean`, which also removes its entire cache.

## Adding `import` and `run` directives
## Adding `imports` and `run` directives

At this point in our example, the only input is a base image, but what if we want to import a script to run or a config file? Consider the next stacker file example:

Expand All @@ -72,7 +72,7 @@ At this point in our example, the only input is a base image, but what if we wan
from:
type: docker
url: docker://centos:latest
import:
imports:
- config.json
- install.sh
run: |
Expand Down Expand Up @@ -106,10 +106,10 @@ If the content of `install.sh` is "echo hello world," the stacker build output w
filesystem first built successfully
</pre>

In this latest stacker file, we've added an `import` section, with two new directives :
In this latest stacker file, we've added an `imports` section, with two new directives :

```yaml
import:
imports:
- config.json
- install.sh
```
Expand Down Expand Up @@ -159,7 +159,7 @@ Finally, stacker offers "build only" containers, which are built but not emitted
from:
type: docker
url: docker://centos:latest
import: stacker://build/umoci.static
imports: stacker://build/umoci.static
run: cp /stacker/umoci.static /usr/bin/umoci
```

Expand All @@ -172,7 +172,7 @@ This file builds a static version of umoci in an ubuntu container, but the final
This line indicates that the container shouldn't be emitted in the final image, because we're only going to import something from it and we don't need the rest of it.

```yaml
import: stacker://build/umoci.static
imports: stacker://build/umoci.static
```

This line performs the actual import. The line calls for this action: "From a previously built stacker image called `build`, import `/umoci.static`."

0 comments on commit 6588805

Please sign in to comment.