OpenParable
Skip to content
← Back to skills

Netalertx Docker Build

DevOps & Security
netalertx-docker-build

Netalertx Docker Build is an Agent Skill for devops & security published in the netalertx/NetAlertX repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/netalertx/NetAlertX/blob/HEAD/.github/skills/docker-build/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/netalertx-docker-build, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

  1. Stop devcontainer services: pkill -f 'php-fpm83|nginx|crond|python3'
  2. Close VS Code forwarded ports
  3. Run the build command

Production Container Details

  • Image: netalertx:latest
  • Container name: netalertx
  • Network mode: host
  • Ports: 20211 (UI), 20212 (API/GraphQL)