2021-01-04 09:35:31 +01:00
|
|
|
load("@io_bazel_rules_docker//python3:image.bzl", "py3_image")
|
|
|
|
|
2021-01-29 09:18:22 +01:00
|
|
|
load("@pip_modules//:requirements.bzl", "requirement")
|
2021-01-04 09:35:31 +01:00
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "binary",
|
|
|
|
actual = ":image.binary",
|
|
|
|
)
|
|
|
|
|
|
|
|
py3_image(
|
|
|
|
name = "image",
|
|
|
|
srcs = glob(["**/*.py"]),
|
|
|
|
base = "//images/production:base-python-image",
|
|
|
|
data = [
|
|
|
|
"configs/base.yaml",
|
|
|
|
"configs/logging.yaml",
|
2022-03-28 16:39:36 +02:00
|
|
|
"//nexus/cognitron/configs:scimag.yaml",
|
|
|
|
"//nexus/cognitron/configs:scitech.yaml",
|
2021-01-04 09:35:31 +01:00
|
|
|
],
|
|
|
|
main = "main.py",
|
|
|
|
srcs_version = "PY3ONLY",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
requirement("aiokafka"),
|
2022-09-02 17:44:56 +02:00
|
|
|
requirement("aiosumma"),
|
2021-01-04 09:35:31 +01:00
|
|
|
requirement("aiocrossref"),
|
|
|
|
requirement("aiokit"),
|
|
|
|
requirement("aiolibgen"),
|
|
|
|
"//library/aiopostgres",
|
2022-09-13 16:15:16 +02:00
|
|
|
requirement("izihawa_configurator"),
|
2022-03-28 16:39:36 +02:00
|
|
|
"//library/jobber",
|
2021-01-04 09:35:31 +01:00
|
|
|
"//nexus/actions",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|