hyperboria/idm/api/BUILD.bazel
the-superpirate 43be16e4bc - [nexus] Update schema
- [nexus] Remove outdated protos
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Refactor views
  - [nexus] Update aiosumma
  - [nexus] Add tags
  - [nexus] Development
  - [nexus] Update repository
  - [nexus] Update repository
  - [nexus] Update dependencies
  - [nexus] Update dependencies
  - [nexus] Fixes for MetaAPI
  - [nexus] Support for new queries
  - [nexus] Adopt new versions of search
  - [nexus] Improving Nexus
  - [nexus] Various fixes
  - [nexus] Add profile
  - [nexus] Fixes for ingestion
  - [nexus] Refactorings and bugfixes
  - [idm] Add profile methods
  - [nexus] Fix stalled nexus-meta bugs
  - [nexus] Various bugfixes
  - [nexus] Restore IDM API functionality

GitOrigin-RevId: a0842345a6dde5b321279ab5510a50c0def0e71a
2022-09-02 19:15:47 +03:00

73 lines
1.7 KiB
Python

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",
)
py3_image(
name = "image",
srcs = glob(
[
"*.py",
"configs/**/*.py",
"daemons/**/*.py",
"proto/**",
"services/**",
],
exclude = [
"**/__pycache__/**",
"**/*.pyc",
"**/README",
"**/*.mako",
"proto/**/*.py",
],
),
base = "//images/production:base-python-image",
data = [
"configs/base.yaml",
"configs/logging.yaml",
],
layers = [
requirement("aiochclient"),
requirement("aiohttp"),
requirement("croniter"),
requirement("grpcio"),
requirement("pypika"),
requirement("uvloop"),
"//idm/api/proto:grpc_py",
"//idm/api/proto:proto_py",
"//library/aiogrpctools",
requirement("aiokit"),
"//library/aiopostgres",
"//library/configurator",
"//library/telegram",
requirement("izihawa_utils"),
],
main = "main.py",
srcs_version = "PY3ONLY",
visibility = ["//visibility:public"],
)
container_push(
name = "push-testing",
format = "Docker",
image = ":image",
registry = "registry.infra.svc.cluster.local",
repository = "idm-api",
tag = "testing",
)
container_push(
name = "push-latest",
format = "Docker",
image = ":image",
registry = "registry.infra.svc.cluster.local",
repository = "idm-api",
tag = "latest",
)