You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get_started/tutorial.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ The rebuild is shorter because stacker caches all of the inputs to a build, and
63
63
64
64
> :bulb: Stacker's metadata can be cleaned with `stacker clean`, which also removes its entire cache.
65
65
66
-
## Adding `import` and `run` directives
66
+
## Adding `imports` and `run` directives
67
67
68
68
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:
69
69
@@ -72,7 +72,7 @@ At this point in our example, the only input is a base image, but what if we wan
72
72
from:
73
73
type: docker
74
74
url: docker://centos:latest
75
-
import:
75
+
imports:
76
76
- config.json
77
77
- install.sh
78
78
run: |
@@ -106,10 +106,10 @@ If the content of `install.sh` is "echo hello world," the stacker build output w
106
106
filesystem first built successfully
107
107
</pre>
108
108
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 :
110
110
111
111
```yaml
112
-
import:
112
+
imports:
113
113
- config.json
114
114
- install.sh
115
115
```
@@ -159,7 +159,7 @@ Finally, stacker offers "build only" containers, which are built but not emitted
159
159
from:
160
160
type: docker
161
161
url: docker://centos:latest
162
-
import: stacker://build/umoci.static
162
+
imports: stacker://build/umoci.static
163
163
run: cp /stacker/umoci.static /usr/bin/umoci
164
164
```
165
165
@@ -172,7 +172,7 @@ This file builds a static version of umoci in an ubuntu container, but the final
172
172
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.
173
173
174
174
```yaml
175
-
import: stacker://build/umoci.static
175
+
imports: stacker://build/umoci.static
176
176
```
177
177
178
178
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