@@ -45,7 +45,7 @@ Build the run image:
45
45
``` bash
46
46
docker build \
47
47
--file $PWD /samples/stacks/alpine/run/curl.Dockerfile \
48
- --tag run-image-curl .
48
+ --tag localhost:5000/ run-image-curl .
49
49
```
50
50
51
51
### Re-build the application image
@@ -55,7 +55,7 @@ docker build \
55
55
pack build hello-extensions \
56
56
--builder localhost:5000/extensions-builder \
57
57
--env BP_EXT_DEMO=1 \
58
- --env BP_REQUIRES=tree ,curl \
58
+ --env BP_REQUIRES=vim ,curl \
59
59
--path $PWD /samples/apps/java-maven \
60
60
--pull-policy always \
61
61
--network host \
@@ -68,26 +68,26 @@ You should see:
68
68
69
69
```
70
70
[detector] ======== Results ========
71
- [detector] pass: samples/tree @0.0.1
71
+ [detector] pass: samples/vim @0.0.1
72
72
[detector] pass: samples/[email protected]
73
73
[detector] pass: samples/[email protected]
74
74
[detector] Resolving plan... (try #1)
75
- [detector] samples/tree 0.0.1
75
+ [detector] samples/vim 0.0.1
76
76
[detector] samples/curl 0.0.1
77
77
[detector] samples/hello-extensions 0.0.1
78
- [detector] Running generate for extension samples/tree @0.0.1
78
+ [detector] Running generate for extension samples/vim @0.0.1
79
79
...
80
80
[detector] Running generate for extension samples/[email protected]
81
81
...
82
82
[detector] Checking for new run image
83
83
[detector] Found a run.Dockerfile configuring image 'run-image-curl' from extension with id 'samples/curl'
84
84
...
85
- [extender] Found build Dockerfile for extension 'samples/tree '
86
- [extender] Applying the Dockerfile at /layers/generated/build/samples_tree /Dockerfile...
85
+ [extender] Found build Dockerfile for extension 'samples/vim '
86
+ [extender] Applying the Dockerfile at /layers/generated/build/samples_vim /Dockerfile...
87
87
...
88
88
[extender] Running build command
89
89
[extender] ---> Hello Extensions Buildpack
90
- [extender] tree v1.8.0 (c) 1996 - 2018 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro
90
+ [extender] vim v1.8.0 (c) 1996 - 2018 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro
91
91
...
92
92
Successfully built image hello-extensions
93
93
```
@@ -105,16 +105,16 @@ You should see something akin to:
105
105
curl 7.85.0-DEV (x86_64-pc-linux-musl) ... more stuff here ...
106
106
```
107
107
108
- What happened: now that ` hello-extensions ` requires both ` tree ` and ` curl ` in its build plan, both extensions are
108
+ What happened: now that ` hello-extensions ` requires both ` vim ` and ` curl ` in its build plan, both extensions are
109
109
included in the build and provide the needed dependencies for build and launch, respectively
110
- * The ` tree ` extension installs ` tree ` at build time, as before
110
+ * The ` vim ` extension installs ` vim ` at build time, as before
111
111
* The ` curl ` extension switches the run image to ` run-image-curl ` , which has ` curl ` installed
112
112
113
113
Now our ` curl ` process can succeed!
114
114
115
115
## What's next?
116
116
117
- The ` tree ` and ` curl ` examples are very simple, but we can unlock powerful new features with this functionality.
117
+ The ` vim ` and ` curl ` examples are very simple, but we can unlock powerful new features with this functionality.
118
118
119
119
Platforms could have several run images available, each tailored to a specific language family, thus limiting the number
120
120
of installed dependencies for each image to the minimum necessary to support the targeted language. Image extensions
0 commit comments