File tree Expand file tree Collapse file tree 3 files changed +5
-40
lines changed
content/docs/extension-guide/create-extension Expand file tree Collapse file tree 3 files changed +5
-40
lines changed Original file line number Diff line number Diff line change @@ -28,32 +28,14 @@ cat $PWD/samples/extensions/tree/bin/generate
28
28
29
29
The extension generates a ` build.Dockerfile ` that installs ` tree ` on the builder image.
30
30
31
- ### Re-create our builder with ` hello-extensions ` updated to require ` tree `
32
-
33
- Edit ` $PWD/samples/buildpacks/hello-extensions/bin/detect ` to uncomment the first set of lines that output ` [[requires]] ` to the build plan:
34
-
35
- <!-- test:exec -->
36
- ``` bash
37
- sed -i " 10,11s/#//" $PWD /samples/buildpacks/hello-extensions/bin/detect
38
- ```
39
-
40
- (On Mac, use ` sed -i '' "10,11s/#//" $PWD/samples/buildpacks/hello-extensions/bin/detect ` )
41
-
42
- Re-create the builder:
43
-
44
- <!-- test:exec -->
45
- ```
46
- pack builder create localhost:5000/extensions-builder \
47
- --config $PWD/samples/builders/alpine/builder.toml \
48
- --publish
49
- ```
50
-
51
31
### Re-build the application image
52
32
53
33
<!-- test:exec -->
54
34
```
55
35
pack build hello-extensions \
56
36
--builder localhost:5000/extensions-builder \
37
+ --env BP_EXT_DEMO=1 \
38
+ --env BP_REQUIRES=tree \
57
39
--network host \
58
40
--path $PWD/samples/apps/java-maven \
59
41
--pull-policy always \
Original file line number Diff line number Diff line change @@ -48,32 +48,14 @@ docker build \
48
48
--tag run-image-curl .
49
49
```
50
50
51
- ### Re-create our builder with ` hello-extensions ` updated to require ` curl `
52
-
53
- Edit ` $PWD/samples/buildpacks/hello-extensions/bin/detect ` to uncomment the second set of lines that output ` [[requires]] ` to the build plan:
54
-
55
- <!-- test:exec -->
56
- ``` bash
57
- sed -i " 14,15s/#//" $PWD /samples/buildpacks/hello-extensions/bin/detect
58
- ```
59
-
60
- (On Mac, use ` sed -i '' "14,15s/#//" $PWD/samples/buildpacks/hello-extensions/bin/detect ` )
61
-
62
- Re-create the builder:
63
-
64
- <!-- test:exec -->
65
- ``` bash
66
- pack builder create localhost:5000/extensions-builder \
67
- --config $PWD /samples/builders/alpine/builder.toml \
68
- --publish
69
- ```
70
-
71
51
### Re-build the application image
72
52
73
53
<!-- test:exec -->
74
54
``` bash
75
55
pack build hello-extensions \
76
56
--builder localhost:5000/extensions-builder \
57
+ --env BP_EXT_DEMO=1 \
58
+ --env BP_REQUIRES=tree,curl \
77
59
--path $PWD /samples/apps/java-maven \
78
60
--pull-policy always \
79
61
--network host \
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ Run `pack build` (note that the "source" directory is effectively ignored in our
60
60
```
61
61
pack build hello-extensions \
62
62
--builder localhost:5000/extensions-builder \
63
+ --env BP_EXT_DEMO=1 \
63
64
--network host \
64
65
--path $PWD/samples/apps/java-maven \
65
66
--pull-policy always \
You can’t perform that action at this time.
0 commit comments