feat: 测试交付 Q1 混沌压测骨架与 Q4 镜像骨架

This commit is contained in:
Nixevol
2026-09-30 06:59:44 +08:00
parent 0e068c6ade
commit 8dde564517
21 changed files with 1268 additions and 16 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# 多阶段骨架:完整多架构发布见 Q4。
# 语法阶段:Node 构建前端 → Go 编译(嵌入前端)→ distroless 运行。
# 多阶段构建:Node 构建前端 → Go 编译(嵌入前端)→ distroless static nonroot。
# 镜像名 git.asio.asia/nixevol/nixmsg;多架构 buildx 推送留给 Q4 定稿,本骨架先单架构可构建。
FROM node:24-bookworm AS web
WORKDIR /src/web
+10
View File
@@ -0,0 +1,10 @@
# Compose / 容器内使用的配置示例。业务端口可按需改;测试请用随机端口,不要多实例抢 7443。
listen: ":7443"
admin_listen: ""
tls:
cert_file: ""
key_file: ""
allow_plaintext: true
data_dir: /data
log:
level: info
+31
View File
@@ -0,0 +1,31 @@
# Docker Compose 示例(DEVELOPMENT 第 11.4 节骨架)
# 本地冒烟:先 docker build -t git.asio.asia/nixevol/nixmsg:0.1.0 -f deploy/Dockerfile .
# 容器名带 q 前缀便于多 Agent 隔离;正式部署可去掉 container_name。
services:
nixmsg:
image: git.asio.asia/nixevol/nixmsg:0.1.0
container_name: q-nixmsg
restart: unless-stopped
command: ["serve"]
environment:
NIXMSG_CONFIG: /etc/nixmsg/config.yaml
ports:
- "7443:7443"
volumes:
- ./config.docker.yaml:/etc/nixmsg/config.yaml:ro
- q-nixmsg-data:/data
# 生产环境挂载证书目录,例如:
# - /opt/nixmsg/certs:/certs:ro
healthcheck:
test: ["CMD", "/nixmsg", "healthcheck"]
interval: 30s
timeout: 5s
retries: 3
volumes:
q-nixmsg-data:
name: q-nixmsg-data
# 首次使用命名卷时,需保证 /data 对 uid 65532 可写,例如:
# docker run --rm -v q-nixmsg-data:/data busybox chown -R 65532:65532 /data