Skip to content

Commit 875a792

Browse files
authoredApr 18, 2025
docs: change import to imports in tutorial (#58)
Signed-off-by: mbshields <[email protected]>
1 parent b18dac8 commit 875a792

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎docs/get_started/tutorial.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The rebuild is shorter because stacker caches all of the inputs to a build, and
6363

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

66-
## Adding `import` and `run` directives
66+
## Adding `imports` and `run` directives
6767

6868
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:
6969

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

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

111111
```yaml
112-
import:
112+
imports:
113113
- config.json
114114
- install.sh
115115
```
@@ -159,7 +159,7 @@ Finally, stacker offers "build only" containers, which are built but not emitted
159159
from:
160160
type: docker
161161
url: docker://centos:latest
162-
import: stacker://build/umoci.static
162+
imports: stacker://build/umoci.static
163163
run: cp /stacker/umoci.static /usr/bin/umoci
164164
```
165165

@@ -172,7 +172,7 @@ This file builds a static version of umoci in an ubuntu container, but the final
172172
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.
173173

174174
```yaml
175-
import: stacker://build/umoci.static
175+
imports: stacker://build/umoci.static
176176
```
177177

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

0 commit comments

Comments
 (0)