Devcontainer Management
DevOps & Securitydevcontainer-managementDevcontainer Management 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.
Guide for identifying, managing, and running commands within the NetAlertX development container. Use this when asked to run commands, testing, setup scripts, or troubleshoot container issues.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/netalertx/NetAlertX/blob/HEAD/.gemini/skills/devcontainer-management/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/devcontainer-management, 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.
Devcontainer Management
When starting a session or performing tasks requiring the runtime environment, you must identify and use the active development container.
Finding the Container
Run docker ps to list running containers. Look for an image name containing vsc-netalertx or similar.
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}" | grep netalertx
- If no container is found: Inform the user. You cannot run integration tests or backend logic without it.
- If multiple containers are found: Ask the user to clarify which one to use (e.g., provide the Container ID).
Running Commands in the Container
Prefix commands with docker exec <CONTAINER_ID> to run them inside the environment. Use the scripts in /services/ to control backend and other processes.
docker exec <CONTAINER_ID> bash /workspaces/NetAlertX/.devcontainer/scripts/setup.sh
Note: This script wipes /tmp ramdisks, resets DBs, and restarts services (python server, cron,php-fpm, nginx).