forked from paketo-buildpacks/graalvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildpack.toml
272 lines (232 loc) · 10.5 KB
/
buildpack.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# Copyright 2018-2024 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
api = "0.7"
[buildpack]
description = "A Cloud Native Buildpack that provides the GraalVM implementations of JREs, JDKs and Native Image tools"
homepage = "https://github.com/paketo-buildpacks/graalvm"
id = "paketo-buildpacks/graalvm"
keywords = ["java", "jvm", "jre", "jdk", "native-image"]
name = "Paketo Buildpack for GraalVM"
sbom-formats = ["application/vnd.cyclonedx+json", "application/vnd.syft+json"]
version = "{{.version}}"
[[buildpack.licenses]]
type = "Apache-2.0"
uri = "https://github.com/paketo-buildpacks/graalvm/blob/main/LICENSE"
[metadata]
include-files = ["LICENSE", "NOTICE", "README.md", "linux/amd64/bin/build", "linux/amd64/bin/detect", "linux/amd64/bin/main", "linux/amd64/bin/helper", "linux/arm64/bin/build", "linux/arm64/bin/detect", "linux/arm64/bin/main", "linux/arm64/bin/helper", "buildpack.toml"]
pre-package = "scripts/build.sh"
[[metadata.configurations]]
default = "0"
description = "the headroom in memory calculation"
launch = true
name = "BPL_JVM_HEAD_ROOM"
[[metadata.configurations]]
default = "35% of classes"
description = "the number of loaded classes in memory calculation"
launch = true
name = "BPL_JVM_LOADED_CLASS_COUNT"
[[metadata.configurations]]
default = "250"
description = "the number of threads in memory calculation"
launch = true
name = "BPL_JVM_THREAD_COUNT"
[[metadata.configurations]]
default = ""
description = "write heap dumps on error to this path"
launch = true
name = "BPL_HEAP_DUMP_PATH"
[[metadata.configurations]]
default = "true"
description = "enables Java Native Memory Tracking (NMT)"
launch = true
name = "BPL_JAVA_NMT_ENABLED"
[[metadata.configurations]]
default = "summary"
description = "configure level of NMT, summary or detail"
launch = true
name = "BPL_JAVA_NMT_LEVEL"
[[metadata.configurations]]
default = "false"
description = "enables Java Management Extensions (JMX)"
launch = true
name = "BPL_JMX_ENABLED"
[[metadata.configurations]]
default = "5000"
description = "configure the JMX port"
launch = true
name = "BPL_JMX_PORT"
[[metadata.configurations]]
default = "false"
description = "enables Java remote debugging support"
launch = true
name = "BPL_DEBUG_ENABLED"
[[metadata.configurations]]
default = "8000"
description = "configure the remote debugging port"
launch = true
name = "BPL_DEBUG_PORT"
[[metadata.configurations]]
default = "false"
description = "configure whether to suspend execution until a debugger has attached"
launch = true
name = "BPL_DEBUG_SUSPEND"
[[metadata.configurations]]
default = "false"
description = "enables Java Flight Recording (JFR)"
launch = true
name = "BPL_JFR_ENABLED"
[[metadata.configurations]]
default = ""
description = "configure custom Java Flight Recording (JFR) arguments"
launch = true
name = "BPL_JFR_ARGS"
[[metadata.configurations]]
build = true
default = "false"
description = "enables running jlink tool to generate custom JRE"
name = "BP_JVM_JLINK_ENABLED"
[[metadata.configurations]]
build = true
default = "--no-man-pages --no-header-files --strip-debug --compress=1"
description = "configure custom link arguments (--output must be omitted)"
name = "BP_JVM_JLINK_ARGS"
[[metadata.configurations]]
build = true
default = "17"
description = "the Java version"
name = "BP_JVM_VERSION"
[[metadata.configurations]]
description = "the JVM launch flags"
launch = true
name = "JAVA_TOOL_OPTIONS"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:17.0.9:*:*:*:*:*:*:*:*"]
id = "jdk"
name = "GraalVM for JDK"
purl = "pkg:generic/[email protected]&arch=amd64"
sha256 = "e47ba7229cef02393e19d5b8f46f7f1cab4829dd17bfe84d5431fc8ff0e22a96"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-17.0.9.tar.gz"
source-sha256 = "488b8d968a114f52606cab5e080b53d264e550c8f3e66993952363744df2b63e"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz"
version = "17.0.9"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:21.0.2:*:*:*:*:*:*:*:*"]
id = "jdk"
name = "GraalVM for JDK"
purl = "pkg:generic/[email protected]&arch=amd64"
sha256 = "b048069aaa3a99b84f5b957b162cc181a32a4330cbc35402766363c5be76ae48"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-21.0.2.tar.gz"
source-sha256 = "a99dfd8246c0e6cbbf756e76f301426ea58eeb85da1b172a566e2ba3e1583e5a"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-x64_bin.tar.gz"
version = "21.0.2"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:17.0.9:*:*:*:*:*:*:*:*"]
id = "native-image-svm"
name = "GraalVM for Native Image"
purl = "pkg:generic/[email protected]&arch=amd64"
sha256 = "e47ba7229cef02393e19d5b8f46f7f1cab4829dd17bfe84d5431fc8ff0e22a96"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-17.0.9.tar.gz"
source-sha256 = "488b8d968a114f52606cab5e080b53d264e550c8f3e66993952363744df2b63e"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-x64_bin.tar.gz"
version = "17.0.9"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:21.0.2:*:*:*:*:*:*:*:*"]
id = "native-image-svm"
name = "GraalVM for Native Image"
purl = "pkg:generic/[email protected]&arch=amd64"
sha256 = "b048069aaa3a99b84f5b957b162cc181a32a4330cbc35402766363c5be76ae48"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-21.0.2.tar.gz"
source-sha256 = "a99dfd8246c0e6cbbf756e76f301426ea58eeb85da1b172a566e2ba3e1583e5a"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-x64_bin.tar.gz"
version = "21.0.2"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:17.0.9:*:*:*:*:*:*:*:*"]
id = "jdk"
name = "GraalVM for JDK"
purl = "pkg:generic/[email protected]&arch=arm64"
sha256 = "c3281b21f5220c2f76cf6fa0d646bc42e2d729af2c022bb06e557a613ba16102"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-17.0.9.tar.gz"
source-sha256 = "488b8d968a114f52606cab5e080b53d264e550c8f3e66993952363744df2b63e"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-aarch64_bin.tar.gz"
version = "17.0.9"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:21.0.2:*:*:*:*:*:*:*:*"]
id = "jdk"
name = "GraalVM for JDK"
purl = "pkg:generic/[email protected]&arch=arm64"
sha256 = "a34be691ce68f0acf4655c7c6c63a9a49ed276a11859d7224fd94fc2f657cd7a"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-21.0.2.tar.gz"
source-sha256 = "a99dfd8246c0e6cbbf756e76f301426ea58eeb85da1b172a566e2ba3e1583e5a"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-aarch64_bin.tar.gz"
version = "21.0.2"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:17.0.9:*:*:*:*:*:*:*:*"]
id = "native-image-svm"
name = "GraalVM for Native Image"
purl = "pkg:generic/[email protected]&arch=arm64"
sha256 = "c3281b21f5220c2f76cf6fa0d646bc42e2d729af2c022bb06e557a613ba16102"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-17.0.9.tar.gz"
source-sha256 = "488b8d968a114f52606cab5e080b53d264e550c8f3e66993952363744df2b63e"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.9/graalvm-community-jdk-17.0.9_linux-aarch64_bin.tar.gz"
version = "17.0.9"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:21.0.2:*:*:*:*:*:*:*:*"]
id = "native-image-svm"
name = "GraalVM for Native Image"
purl = "pkg:generic/[email protected]&arch=arm64"
sha256 = "a34be691ce68f0acf4655c7c6c63a9a49ed276a11859d7224fd94fc2f657cd7a"
source = "https://github.com/graalvm/graalvm-ce-builds/archive/refs/tags/jdk-21.0.2.tar.gz"
source-sha256 = "a99dfd8246c0e6cbbf756e76f301426ea58eeb85da1b172a566e2ba3e1583e5a"
stacks = ["*"]
uri = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-aarch64_bin.tar.gz"
version = "21.0.2"
[[metadata.dependencies.licenses]]
type = "GPL-2.0 WITH Classpath-exception-2.0"
uri = "https://openjdk.java.net/legal/gplv2+ce.html"
[[stacks]]
id = "*"
[[targets]]
arch = "amd64"
os = "linux"
[[targets]]
arch = "arm64"
os = "linux"