Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: change import to imports in tutorial #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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`."
Loading