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
**Example:** Overwriting `git_ref` for a specific version
30
30
```yaml
31
31
already_avail: [5.2]
32
+
32
33
all:
33
34
type: git
34
35
git_url: https://github.com/phalcon/cphalcon
35
36
git_ref: master
37
+
36
38
# PHP 8.1 is using a different git_ref
37
39
8.1:
40
+
type: git
38
41
git_ref: v1.0.0
42
+
39
43
# PHP 8.0 is using a different git_ref dynamically with latest tag found
40
44
# See the usage of supported shell code
41
45
8.0:
46
+
type: git
42
47
git_ref: $( git tag | sort -V | tail -1 )
43
48
```
44
49
@@ -53,7 +58,7 @@ The following keys can be added below: `all`, `8.2`, `8.1`, `8.0`, `7.4`, ...
53
58
| `post` | No | Yes | Specify a shell command to be run after module installation. |
54
59
| `build_dep` | No | No | Array Debian packages required to build the module (they won't be present in the final image - only used to built the module) If you don't need any, assign it an empty array: `build_dep: []`. |
55
60
| `run_dep` | No | No | Array Debian packages required for the module run-time (they won't be present during the build stage - only in the final image). If you don't need any, assign it an empty array: `run_dep: []`. |
56
-
| `type` | **Yes** | No | On of the following types to build the module: `builtin`, `pecl`, `git`, `custom`. |
61
+
| `type` | **Yes** | No | On of the following types to build the module: `builtin`, `pecl`, `git` or `custom`. |
57
62
58
63
**Example:**
59
64
```yaml
@@ -65,6 +70,7 @@ all:
65
70
rm -f /tmp/file.txt \
66
71
build_dep: [libmcrypt-dev]
67
72
run_dep: [libmcrypt4]
73
+
68
74
8.1:
69
75
type: builtin
70
76
build_dep: []
@@ -82,9 +88,11 @@ all:
82
88
```yaml
83
89
all:
84
90
type: builtin
91
+
85
92
8.1:
86
93
type: builtin
87
94
configure: --with-jpeg --with-png
95
+
88
96
8.0:
89
97
type: builtin
90
98
configure: --with-jpeg
@@ -105,6 +113,7 @@ all:
105
113
command: echo "/usr" | pecl install amqp
106
114
build_dep: [librabbitmq-dev]
107
115
run_dep: [librabbitmq4]
116
+
108
117
5.5:
109
118
type: pecl
110
119
version: 1.9.3
@@ -124,16 +133,22 @@ all:
124
133
**Example:**
125
134
```yaml
126
135
already_avail: [5.2]
136
+
137
+
# Default for all PHP versions if no overwrite exists
127
138
all:
128
139
type: git
129
140
git_url: https://github.com/phalcon/cphalcon
130
141
git_ref: master
131
-
# PHP 8.1 is using a different git_ref
142
+
143
+
# PHP 8.1 is overwriting the git_ref
132
144
8.1:
145
+
type: git
133
146
git_ref: v1.0.0
147
+
134
148
# PHP 8.0 is using a different git_ref dynamically with latest tag found
135
149
# See the usage of supported shell code
136
150
8.0:
151
+
type: git
137
152
git_ref: $( git tag | sort -V | tail -1 )
138
153
```
139
154
@@ -165,12 +180,12 @@ all:
165
180
166
181
**Note:** All keys that support shell code can be written as a single line yaml definition or as a multi line yaml definition. Multi-line yaml definitions need a trailing `\` at the end of each line, including the last line.<br/>
**Note:** All keys that support shell code also support to write multiple shell commands. If you use multiple shell commands, you need to separate them with `&&`.<br/>
| `pre` | No | Yes | Specify a shell command to be run before module installation. |
49
+
| `post` | No | Yes | Specify a shell command to be run after module installation. |
50
+
| `build_dep` | No | No | Array Debian packages required to build the module (they won't be present in the final image - only used to built the module) If you don't need any, assign it an empty array: `build_dep: []`. |
51
+
| `run_dep` | No | No | Array Debian packages required for the module run-time (they won't be present during the build stage - only in the final image). If you don't need any, assign it an empty array: `run_dep: []`. |
52
+
| `type` | **Yes** | No | On of the following types to build the module: `apt`, `composer`, `npm`, `pip`, `rubygem` or `custom`. |
53
+
54
+
**Note:** When using `type: custom`, all data needs to be installed into `/usr/local/bin` as only this directory is copied into the next docker stage during multi-stage build.
| `command` | Yes | Yes | Custom command to install a tool. |
167
+
168
+
**Note:** When using `type: custom`, all data needs to be installed into `/usr/local/bin` as only this directory is copied into the next docker stage during multi-stage build.
**Note:** All keys that support shell code can be written as a single line yaml definition or as a multi line yaml definition. Multi-line yaml definitions need a trailing `\` at the end of each line, including the last line.<br/>
**Note:** All keys that support shell code also support to write multiple shell commands. If you use multiple shell commands, you need to separate them with `&&`.<br/>
0 commit comments