Agent Skills
› netalertx/NetAlertX
› netalertx-docker-build
netalertx-docker-build
GitHub提供Docker镜像构建与生产容器启动指南,包含单元测试镜像构建、预检查清单及容器配置详情,适用于容器化应用的部署与测试场景。
Trigger Scenarios
构建Docker镜像
启动生产容器
执行docker build命令
Install
npx skills add netalertx/NetAlertX --skill netalertx-docker-build -g -y
SKILL.md
Frontmatter
{
"name": "netalertx-docker-build",
"description": "Build Docker images for testing or production. Use this when asked to build container, build image, docker build, build test image, or launch production container."
}
Docker Build
Build Unit Test Image
Required after container/Dockerfile changes. Tests won't see changes until image is rebuilt.
docker buildx build -t netalertx-test .
Build time: ~30 seconds (or ~90s if venv stage changes)
Build and Launch Production Container
Before launching, stop devcontainer services first to free ports.
cd /workspaces/NetAlertX
docker compose up -d --build --force-recreate
Pre-Launch Checklist
- Stop devcontainer services:
pkill -f 'php-fpm83|nginx|crond|python3' - Close VS Code forwarded ports
- Run the build command
Production Container Details
- Image:
netalertx:latest - Container name:
netalertx - Network mode: host
- Ports: 20211 (UI), 20212 (API/GraphQL)
Version History
- 8aec57b Current 2026-07-24 22:14


