forked from GoogleContainerTools/distroless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
40 lines (37 loc) · 1.06 KB
/
BUILD
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
# Public notice: this file is for internal documentation, testing, and
# reference only. Note that repo maintainers can freely change any part of the
# repository code at any time.
load("@contrib_rules_oci//oci:defs.bzl", "structure_test")
load("//private/oci:defs.bzl", "java_image")
load("//base:distro.bzl", DISTROS = "LANGUAGE_DISTROS")
package(default_visibility = ["//visibility:public"])
[
java_image(
name = "hello_" + user + "_" + distro,
srcs = ["HelloJava.java"],
base = "//java:java11_" + user + "_amd64" + "_" + distro,
main_class = "examples.HelloJava",
)
for user in [
"root",
"nonroot",
]
for distro in DISTROS
]
[
structure_test(
name = "hello_" + user + "_" + distro + "_test",
size = "small",
config = ["testdata/hello_" + user + "_" + distro + ".yaml"],
image = ":hello_" + user + "_" + distro,
tags = [
"amd64",
"manual",
],
)
for user in [
"root",
"nonroot",
]
for distro in DISTROS
]