轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥8起我的订单
文档
工具
提交工单页面收录
nos

ghga/nos

ghga

The Notification Orchestration Service controls the creation of notification events.

下载次数: 0状态:社区镜像维护者:ghga仓库类型:镜像最近更新:4 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,快一点,稳很多。
点击查看

Notification Orchestration Service

The Notification Orchestration Service controls the creation of notification events.

Description

The Notification Orchestration Service (NOS) uses data harvested from events published by various services to form Notification events, which are subsequently consumed by the Notification Service (NS) for dissemination.

Installation

We recommend using the provided Docker container.

A pre-built version is available on https://hub.docker.com/repository/docker/ghga/notification-orchestration-service:

bash
docker pull ghga/notification-orchestration-service:9.0.1

Or you can build the container yourself from the ./Dockerfile:

bash
# Execute in the repo's root dir:
docker build -t ghga/notification-orchestration-service:9.0.1 .

For production-ready deployment, we recommend using Kubernetes. However for simple use cases, you could execute the service using docker on a single server:

bash
# The entrypoint is pre-configured:
docker run -p 8080:8080 ghga/notification-orchestration-service:9.0.1 --help

If you prefer not to use containers, you may install the service from source:

bash
# Execute in the repo's root dir:
pip install .

# To run the service:
nos --help

Configuration

Parameters

The service requires the following configuration parameters:

  • mongo_dsn (string, format: multi-host-uri, required): MongoDB connection string. Might include credentials. For more information see: [***] Length must be at least 1.

    Examples:

    json
    "mongodb://localhost:27017"
    
  • db_name (string, required): Name of the database located on the MongoDB server.

    Examples:

    json
    "my-database"
    
  • mongo_timeout: Timeout in seconds for API calls to MongoDB. The timeout applies to all steps needed to complete the operation, including server selection, connection checkout, serialization, and server-side execution. When the timeout expires, PyMongo raises a timeout exception. If set to None, the operation will not time out (default MongoDB behavior). Default: null.

    • Any of
      • integer: Exclusive minimum: 0.
      • null

    Examples:

    json
    300
    
    json
    600
    
    json
    null
    
  • db_version_collection (string, required): The name of the collection containing DB version information for this service.

    Examples:

    json
    "ifrsDbVersions"
    
  • migration_wait_sec (integer, required): The number of seconds to wait before checking the DB version again.

    Examples:

    json
    5
    
    json
    30
    
    json
    180
    
  • migration_max_wait_sec: The maximum number of seconds to wait for migrations to complete before raising an error. Default: null.

    • Any of
      • integer
      • null

    Examples:

    json
    null
    
    json
    300
    
    json
    600
    
    json
    3600
    
  • notification_topic (string, required): Name of the topic used for notification events.

    Examples:

    json
    "notifications"
    
  • email_notification_type (string, required): The type used for email notification events.

    Examples:

    json
    "email_notification"
    
  • sms_notification_type (string, required): The type used for SMS notification events.

    Examples:

    json
    "sms_notification"
    
  • access_request_topic (string, required): Name of the event topic containing access request events.

    Examples:

    json
    "access-requests"
    
  • user_topic (string): The name of the topic containing user events. Default: "users".

  • auth_topic (string, required): The name of the topic containing auth-related events.

    Examples:

    json
    "auth-events"
    
  • second_factor_recreated_type (string, required): The event type for recreation of the second factor for authentication.

    Examples:

    json
    "second_factor_recreated"
    
  • iva_state_changed_topic (string, required): The name of the topic containing IVA events.

    Examples:

    json
    "ivas"
    
  • iva_state_changed_type (string, required): The type to use for IVA state changed events.

    Examples:

    json
    "iva_state_changed"
    
  • iva_send_code_type (string, required): The type to use for IVA send code events.

    Examples:

    json
    "iva_send_code"
    
  • service_name (string): The Notification Orchestration Service controls the creation of notification events. Default: "nos".

  • service_instance_id (string, required): A string that uniquely identifies this instance across all instances of this service. This is included in log messages.

    Examples:

    json
    "germany-bw-instance-001"
    
  • kafka_servers (array, required): A list of connection strings to connect to Kafka bootstrap servers.

    • Items (string)

    Examples:

    json
    [
        "localhost:9092"
    ]
    
  • kafka_security_protocol (string): Protocol used to communicate with brokers. Valid values are: PLAINTEXT, SSL. Must be one of: "PLAINTEXT" or "SSL". Default: "PLAINTEXT".

  • kafka_ssl_cafile (string): Certificate Authority file path containing certificates used to sign broker certificates. If a CA is not specified, the default system CA will be used if found by OpenSSL. Default: "".

  • kafka_ssl_certfile (string): Optional filename of client certificate, as well as any CA certificates needed to establish the certificate's authenticity. Default: "".

  • kafka_ssl_keyfile (string): Optional filename containing the client private key. Default: "".

  • kafka_ssl_password (string, format: password, write-only): Optional password to be used for the client private key. Default: "".

  • generate_correlation_id (boolean): A flag, which, if False, will result in an error when trying to publish an event without a valid correlation ID set for the context. If True, a new correlation ID will be generated and used in the event header. Default: true.

    Examples:

    json
    true
    
    json
    false
    
  • kafka_max_message_size (integer): The largest message size that can be transmitted, in bytes, before compression. Only services that have a need to send/receive larger messages should set this. When used alongside compression, this value can be set to something greater than the broker's message.max.bytes field, which effectively concerns the compressed message size. Exclusive minimum: 0. Default: 1048576.

    Examples:

    json
    1048576
    
    json
    16777216
    
  • kafka_compression_type: The compression type used for messages. Valid values are: None, gzip, snappy, lz4, and zstd. If None, no compression is applied. This setting is only relevant for the producer and has no effect on the consumer. If set to a value, the producer will compress messages before sending them to the Kafka broker. If unsure, zstd provides a good balance between speed and compression ratio. Default: null.

    • Any of
      • string: Must be one of: "gzip", "snappy", "lz4", or "zstd".
      • null

    Examples:

    json
    null
    
    json
    "gzip"
    
    json
    "snappy"
    
    json
    "lz4"
    
    json
    "zstd"
    
  • kafka_max_retries (integer): The maximum number of times to immediately retry consuming an event upon failure. Works independently of the dead letter queue. Minimum: 0. Default: 0.

    Examples:

    json
    0
    
    json
    1
    
    json
    2
    
    json
    3
    
    json
    5
    
  • kafka_enable_dlq (boolean): A flag to toggle the dead letter queue. If set to False, the service will crash upon exhausting retries instead of publishing events to the DLQ. If set to True, the service will publish events to the DLQ topic after exhausting all retries. Default: false.

    Examples:

    json
    true
    
    json
    false
    
  • kafka_dlq_topic (string): The name of the topic used to resolve error-causing events. Default: "dlq".

    Examples:

    json
    "dlq"
    
  • kafka_retry_backoff (integer): The number of seconds to wait before retrying a failed event. The backoff time is doubled for each retry attempt. Minimum: 0. Default: 0.

    Examples:

    json
    0
    
    json
    1
    
    json
    2
    
    json
    3
    
    json
    5
    
  • log_level (string): The minimum log level to capture. Must be one of: "CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", or "TRACE". Default: "INFO".

  • log_format: If set, will replace JSON formatting with the specified string format. If not set, has no effect. In addition to the standard attributes, the following can also be specified: timestamp, service, instance, level, correlation_id, and details. Default: null.

    • Any of
      • string
      • null

    Examples:

    json
    "%(timestamp)s - %(service)s - %(level)s - %(message)s"
    
    json
    "%(asctime)s - Severity: %(levelno)s - %(msg)s"
    
  • log_traceback (boolean): Whether to include exception tracebacks in log messages. Default: true.

  • central_data_stewardship_email (string, required): The email address of the central data steward.

  • helpdesk_email (string, required): The email address of the GHGA Helpdesk.

  • portal_url (string, format: uri): The URL of the GHGA data portal. Length must be between 1 and 2083 (inclusive). Default: "https://data.ghga.de/".

Usage:

A template YAML file for configuring the service can be found at ./example_config.yaml. Please adapt it, rename it to .nos.yaml, and place it in one of the following locations:

  • in the current working directory where you execute the service (on Linux: ./.nos.yaml)
  • in your home directory (on Linux: ~/.nos.yaml)

The config YAML file will be automatically parsed by the service.

Important: If you are using containers, the locations refer to paths within the container.

All parameters mentioned in the ./example_config.yaml can also be set using environment variables or file secrets.

For naming the environment variables, just prefix the parameter name with nos_, e.g. for the host set an environment variable named nos_host (you may use both upper or lower cases, however, it is standard to define all env variables in upper cases).

To use file secrets, please refer to the corresponding section of the pydantic documentation.

Architecture and Design:

This is a Python-based service following the Triple Hexagonal Architecture pattern. It uses protocol/provider pairs and dependency injection mechanisms provided by the https://github.com/ghga-de/hexkit library.

Development

For setting up the development environment, we rely on the https://code.visualstudio.com/docs/remote/containers of VS Code in combination with Docker Compose.

To use it, you have to have Docker Compose as well as VS Code with its "Remote - Containers" extension (ms-vscode-remote.remote-containers) installed. Then open this repository in VS Code and run the command Remote-Containers: Reopen in Container from the VS Code "Command Palette".

This will give you a full-fledged, pre-configured development environment including:

  • infrastructural dependencies of the service (databases, etc.)
  • all relevant VS Code extensions pre-installed
  • pre-configured linting and auto-formatting
  • a pre-configured debugger
  • automatic license-header insertion

Inside the devcontainer, a command dev_install is available for convenience. It installs the service with all development dependencies, and it installs pre-commit.

The installation is performed automatically when you build the devcontainer. However, if you update dependencies in the ./pyproject.toml or the lock/requirements-dev.txt, run it again.

License

This repository is free to use and modify according to the Apache 2.0 License.

README Generation

This README file is auto-generated, please see .readme_generation/README.md for details.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 nos 镜像标签

docker pull docker.xuanyuan.run/ghga/nos:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull ghga/nos:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

专属域名用法

专属域名 · 开启停用 · 多仓库

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

docker.sock / daemon

账号

失败是否计费

manifest · blob · 计费

申请开票(企业 / 个人)

开票 · 发票 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
ghga/nos
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥8/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 nos 镜像推荐

ghga/auth-service logo

ghga/auth-service

ghga
Authentication adapter and services used for the GHGA data portal
1万+ 次下载
4 天前更新
ghga/data-portal logo

ghga/data-portal

ghga
GHGA Data Portal是GHGA数据门户的Web前端应用,支持元数据浏览、数据集提交与上传、访问请求等功能,帮助用户管理和交互数据资源。
1万+ 次下载
4 天前更新
ghga/file-ingest-service logo

ghga/file-ingest-service

ghga
暂无描述
1万+ 次下载
29 天前更新
ghga/internal-file-registry-service logo

ghga/internal-file-registry-service

ghga
暂无描述
1万+ 次下载
29 天前更新
ghga/encryption-key-store-service logo

ghga/encryption-key-store-service

ghga
暂无描述
1万+ 次下载
29 天前更新
ghga/download-controller-service logo

ghga/download-controller-service

ghga
暂无描述
1万+ 次下载
29 天前更新

查看更多 nos 相关镜像