2021-04-09 10:17:38 +02:00
|
|
|
load("@io_bazel_rules_docker//python3:image.bzl", "py3_image")
|
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
|
|
|
|
|
|
|
load("@pip_modules//:requirements.bzl", "requirement")
|
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "binary",
|
|
|
|
actual = ":image.binary",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
py3_image(
|
|
|
|
name = "image",
|
|
|
|
srcs = glob(["**/*.py"]),
|
|
|
|
base = "//images/production:base-python-image",
|
|
|
|
data = [
|
|
|
|
"configs/base.yaml",
|
|
|
|
"configs/logging.yaml",
|
|
|
|
"configs/promotions.yaml",
|
|
|
|
],
|
|
|
|
main = "main.py",
|
|
|
|
srcs_version = "PY3ONLY",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
requirement("aiodns"),
|
|
|
|
requirement("aiohttp"),
|
|
|
|
requirement("aiohttp_socks"),
|
2022-09-02 17:44:56 +02:00
|
|
|
requirement("dateparser"),
|
|
|
|
requirement("pandas"),
|
2021-04-09 10:17:38 +02:00
|
|
|
requirement("pytimeparse"),
|
|
|
|
requirement("python_socks"),
|
2022-09-02 17:44:56 +02:00
|
|
|
requirement("seaborn"),
|
2021-04-09 10:17:38 +02:00
|
|
|
requirement("tenacity"),
|
|
|
|
requirement("uvloop"),
|
2021-04-12 19:47:21 +02:00
|
|
|
"//idm/api/aioclient",
|
2021-04-09 15:01:57 +02:00
|
|
|
requirement("aiobaseclient"),
|
2021-04-09 10:17:38 +02:00
|
|
|
requirement("aiocrossref"),
|
|
|
|
requirement("aiokit"),
|
|
|
|
"//library/configurator",
|
|
|
|
"//library/logging",
|
|
|
|
"//library/telegram",
|
|
|
|
"//nexus/hub/aioclient",
|
|
|
|
"//nexus/meta_api/aioclient",
|
2022-03-28 16:39:36 +02:00
|
|
|
"//nexus/models/proto:proto_py",
|
2021-04-09 10:17:38 +02:00
|
|
|
"//nexus/views/telegram",
|
2022-09-02 17:44:56 +02:00
|
|
|
requirement("izihawa_nlptools"),
|
2021-04-09 10:17:38 +02:00
|
|
|
requirement("izihawa_utils"),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
container_push(
|
|
|
|
name = "push-testing",
|
|
|
|
format = "Docker",
|
|
|
|
image = ":image",
|
2022-03-28 16:39:36 +02:00
|
|
|
registry = "registry.infra.svc.cluster.local",
|
2021-04-09 10:17:38 +02:00
|
|
|
repository = "nexus-bot",
|
|
|
|
tag = "testing",
|
|
|
|
)
|
|
|
|
|
|
|
|
container_push(
|
|
|
|
name = "push-latest",
|
|
|
|
format = "Docker",
|
|
|
|
image = ":image",
|
2022-03-28 16:39:36 +02:00
|
|
|
registry = "registry.infra.svc.cluster.local",
|
2021-04-09 10:17:38 +02:00
|
|
|
repository = "nexus-bot",
|
|
|
|
tag = "latest",
|
|
|
|
)
|
2021-04-30 15:05:39 +02:00
|
|
|
|
|
|
|
container_push(
|
|
|
|
name = "push-public-latest",
|
|
|
|
format = "Docker",
|
|
|
|
image = ":image",
|
|
|
|
registry = "registry.hub.docker.com",
|
|
|
|
repository = "thesuperpirate/nexus-bot",
|
|
|
|
tag = "latest",
|
|
|
|
)
|
|
|
|
|
|
|
|
container_push(
|
|
|
|
name = "push-public-testing",
|
|
|
|
format = "Docker",
|
|
|
|
image = ":image",
|
|
|
|
registry = "registry.hub.docker.com",
|
|
|
|
repository = "thesuperpirate/nexus-bot",
|
|
|
|
tag = "testing",
|
|
|
|
)
|