2019-08-01 18:16:27 +00:00
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_layer", "container_push")
|
2020-07-03 05:05:15 +00:00
|
|
|
load("@pydeps//:requirements.bzl", "requirement")
|
2019-08-01 18:16:27 +00:00
|
|
|
|
2023-07-28 17:14:50 +00:00
|
|
|
py_binary(
|
2019-08-14 12:33:30 +00:00
|
|
|
name = "ripe-sync",
|
2019-07-19 18:58:50 +00:00
|
|
|
srcs = [
|
2019-08-14 12:33:30 +00:00
|
|
|
"ripe-sync.py",
|
2019-07-19 18:58:50 +00:00
|
|
|
],
|
2023-07-28 17:14:50 +00:00
|
|
|
legacy_create_init = False,
|
2019-07-19 18:58:50 +00:00
|
|
|
deps = [
|
2020-07-03 05:05:15 +00:00
|
|
|
requirement("requests"),
|
|
|
|
"//bgpwtf/cccampix/proto:ix_grpc_proto",
|
2023-07-28 17:14:50 +00:00
|
|
|
"//bgpwtf/cccampix/proto:ix_py_proto",
|
2019-07-19 18:58:50 +00:00
|
|
|
],
|
|
|
|
)
|
2019-08-01 18:16:27 +00:00
|
|
|
|
|
|
|
container_layer(
|
|
|
|
name = "layer_bin",
|
2023-07-28 17:14:50 +00:00
|
|
|
directory = "/ix/",
|
2019-08-01 18:16:27 +00:00
|
|
|
files = [
|
2023-07-28 17:14:50 +00:00
|
|
|
"//bgpwtf/cccampix:ripe-sync",
|
|
|
|
"//bgpwtf/cccampix/frontend",
|
|
|
|
"//bgpwtf/cccampix/irr",
|
|
|
|
"//bgpwtf/cccampix/peeringdb",
|
|
|
|
"//bgpwtf/cccampix/pgpencryptor",
|
|
|
|
"//bgpwtf/cccampix/verifier",
|
2019-08-01 18:16:27 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
container_image(
|
|
|
|
name = "runtime",
|
|
|
|
base = "@prodimage-bionic//image",
|
|
|
|
layers = [
|
|
|
|
":layer_bin",
|
|
|
|
"//bgpwtf/cccampix/octorpki:layer_bin",
|
|
|
|
"//bgpwtf/cccampix/octorpki:layer_tals",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
container_push(
|
|
|
|
name = "push",
|
|
|
|
format = "Docker",
|
2023-07-28 17:14:50 +00:00
|
|
|
image = ":runtime",
|
2019-08-01 18:16:27 +00:00
|
|
|
registry = "registry.k0.hswaw.net",
|
|
|
|
repository = "bgpwtf/cccampix",
|
|
|
|
tag = "{BUILD_TIMESTAMP}-{STABLE_GIT_COMMIT}",
|
|
|
|
)
|