-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildpack.toml
266 lines (225 loc) · 9.27 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
# Copyright 2018-2021 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 Microsoft OpenJDK implementations of JREs and JDKs"
homepage = "https://github.com/paketo-buildpacks/microsoft-openjdk"
id = "paketo-buildpacks/microsoft-openjdk"
keywords = ["java", "jvm", "jre", "jdk"]
name = "Paketo Buildpack for Microsoft OpenJDK"
sbom-formats = ["application/vnd.cyclonedx+json", "application/vnd.syft+json"]
version = "{{.version}}"
[[buildpack.licenses]]
type = "Apache-2.0"
uri = "https://github.com/paketo-buildpacks/microsoft-openjdk/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 = "21"
description = "the Java version"
name = "BP_JVM_VERSION"
[[metadata.configurations]]
build = true
default = "JRE"
description = "the JVM type - JDK or JRE"
name = "BP_JVM_TYPE"
[[metadata.configurations]]
description = "the JVM launch flags"
launch = true
name = "JAVA_TOOL_OPTIONS"
[[metadata.dependencies]]
cpes = ["cpe:2.3:a:oracle:jdk:1.8.0:update432:*:*:*:*:*:*:*"]
id = "jdk"
name = "Adoptium JDK"
purl = "pkg:generic/adoptium/[email protected]?arch=amd64"
sha256 = "abaaa90deadf51bd28921453baf2992b3dff6171bb7142f5bdd14ef269f7b245"
source = "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u432-b06/OpenJDK8U-jdk-sources_8u432b06.tar.gz"
source-sha256 = "35de71e4352e72bfaec591642819cd3d814519a047dfefbc3b08255309e99d3e"
stacks = ["*"]
uri = "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u432-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u432b06.tar.gz"
version = "8.0.432"
[[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:11.0.25:*:*:*:*:*:*:*"]
id = "jdk"
name = "Microsoft OpenJDK"
purl = "pkg:generic/microsoft/[email protected]?arch=amd64"
sha256 = "930b261dfc293f2548272b38b0a6646e042d9dc0d112b4ef4d915c8a508a5575"
stacks = ["*"]
uri = "https://aka.ms/download-jdk/microsoft-jdk-11.0.25-linux-x64.tar.gz"
version = "11.0.25"
[[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.13:*:*:*:*:*:*:*"]
id = "jdk"
name = "Microsoft OpenJDK"
purl = "pkg:generic/microsoft/[email protected]?arch=amd64"
sha256 = "0af769656c48eb7ed35a5c7e14bef23f42f1438e1dc05090eb26d6d3cdf88686"
stacks = ["*"]
uri = "https://aka.ms/download-jdk/microsoft-jdk-17.0.13-linux-x64.tar.gz"
version = "17.0.13"
[[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.5:*:*:*:*:*:*:*"]
id = "jdk"
name = "Microsoft OpenJDK"
purl = "pkg:generic/microsoft/[email protected]?arch=amd64"
sha256 = "0d42a80dbc92f2f112e6db3b4b9bd278c0776a73b6050812e720230813487ebd"
stacks = ["*"]
uri = "https://aka.ms/download-jdk/microsoft-jdk-21.0.5-linux-x64.tar.gz"
version = "21.0.5"
[[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:1.8.0:update432:*:*:*:*:*:*"]
id = "jdk"
name = "Adoptium JDK"
purl = "pkg:generic/[email protected]?arch=arm64"
sha256 = "383caabc20428e9500f2e07965317ed4387a0e336104483e29a9e06eeffbf26b"
source = "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u432-b06/OpenJDK8U-jdk-sources_8u432b06.tar.gz"
source-sha256 = "35de71e4352e72bfaec591642819cd3d814519a047dfefbc3b08255309e99d3e"
stacks = ["*"]
uri = "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u432-b06/OpenJDK8U-jdk_aarch64_linux_hotspot_8u432b06.tar.gz"
version = "8.0.432"
[[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:11.0.25:*:*:*:*:*:*:*"]
id = "jdk"
name = "Microsoft OpenJDK"
purl = "pkg:generic/microsoft/[email protected]?arch=arm64"
sha256 = "a0bac052e41d483e945ca88b263252bb32e5dd24c122f85ad3177f1fad7281ae"
stacks = ["*"]
uri = "https://aka.ms/download-jdk/microsoft-jdk-11.0.25-linux-aarch64.tar.gz"
version = "11.0.25"
[[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.13:*:*:*:*:*:*:*"]
id = "jdk"
name = "Microsoft OpenJDK"
purl = "pkg:generic/microsoft/[email protected]?arch=arm64"
sha256 = "859c993dff29f87e49ce96ac01eb338a8a51ac75a49e841ac74160a1217f7489"
stacks = ["*"]
uri = "https://aka.ms/download-jdk/microsoft-jdk-17.0.13-linux-aarch64.tar.gz"
version = "17.0.13"
[[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.5:*:*:*:*:*:*:*"]
id = "jdk"
name = "Microsoft OpenJDK"
purl = "pkg:generic/microsoft/[email protected]?arch=arm64"
sha256 = "356844fe544085b00cd73935e0c7a4c534f286799728fa6d6e996d1cb8b1a682"
stacks = ["*"]
uri = "https://aka.ms/download-jdk/microsoft-jdk-21.0.5-linux-aarch64.tar.gz"
version = "21.0.5"
[[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"