-
Notifications
You must be signed in to change notification settings - Fork 243
/
Copy pathBUCK
79 lines (71 loc) · 1.66 KB
/
BUCK
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
load(
"@prelude-si//:macros.bzl",
"docker_image",
"export_file",
"nix_omnibus_pkg",
"rust_binary",
"shellcheck",
"shfmt_check",
"test_suite",
)
test_suite(
name = "check-lint",
tests = [
":check-lint-rust-bin",
":check-lint-rust-unit",
":check-lint-shell",
],
)
test_suite(
name = "check-format",
tests = [
":check-format-rust",
":check-format-shell",
],
)
rust_binary(
name = "veritech",
edition = "2021",
deps = [
"//lib/si-service:si-service",
"//lib/veritech-server:veritech-server",
"//third-party/rust:clap",
],
srcs = glob(["src/**/*.rs"]),
env = {"CARGO_BIN_NAME": "veritech"},
resources = {
"cyclone": "//bin/cyclone:cyclone",
"dev.decryption.key": "//lib/veritech-server:dev.decryption.key",
"lang-js": "//bin/lang-js:bin",
"firecracker-setup.sh": "//lib/si-firecracker:firecracker-setup.sh",
"prepare_jailer.sh": "//lib/si-firecracker:prepare_jailer.sh",
},
visibility = ["PUBLIC"],
)
export_file(
name = "docker-entrypoint.sh",
)
shfmt_check(
name = "check-format-shell",
srcs = [":docker-entrypoint.sh"],
)
shellcheck(
name = "check-lint-shell",
srcs = [":docker-entrypoint.sh"],
)
docker_image(
name = "image",
image_name = "veritech",
flake_lock = "//:flake.lock",
build_deps = [
"//bin/veritech:veritech",
"//bin/veritech:docker-entrypoint.sh",
"//bin/cyclone:cyclone",
"//bin/lang-js:bin",
],
)
nix_omnibus_pkg(
name = "omnibus",
pkg_name = "veritech",
build_dep = "//bin/veritech:veritech",
)