원클릭으로
deploy-docker
Build and run Argus complete Docker image for full 6-phase security scanning against a target repository.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Build and run Argus complete Docker image for full 6-phase security scanning against a target repository.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Diagnose and fix scanner wiring issues in hybrid_analyzer.py and scanner_runners.py. Use when Docker pipeline runs fail with scanner init or method errors.
Generate tests for an Argus module following project conventions. Use when the user wants to add tests for a module.
Run the Argus 6-phase security audit pipeline. Use when the user wants to run a security scan or audit.
SOC 직업 분류 기준
| name | deploy-docker |
| description | Build and run Argus complete Docker image for full 6-phase security scanning against a target repository. |
Deploy Argus Docker scanner for: $ARGUMENTS
Expected arguments: <target-repo-path> [--rebuild] [--ai-provider anthropic|openai|ollama]
Verify Docker is running:
docker info > /dev/null 2>&1
If this fails, stop and tell the user to start Docker Desktop or the Docker daemon.
Check disk space:
docker system df
Warn the user if less than 5GB is available. The Argus complete image requires significant space for all scanner tooling.
Verify API key is set:
ANTHROPIC_API_KEY environment variable is set and non-empty.--ai-provider openai is passed: Check that OPENAI_API_KEY is set instead.--ai-provider ollama is passed: No API key required, but verify Ollama is reachable at http://localhost:11434.argus-complete image already exists:
docker image inspect argus-complete > /dev/null 2>&1
--rebuild was NOT passed, skip the build and report the existing image tag/size.--rebuild was passed, build it:
docker build -f Dockerfile.complete -t argus-complete .
Run this from the Argus-Security repo root (/Users/waseem.ahmed/Repos/Argus-Security).<target-repo-path> from arguments.
http://, https://, or git@): clone it to /tmp/argus-target-rw/.
rm -rf /tmp/argus-target-rw
git clone <url> /tmp/argus-target-rw
rm -rf /tmp/argus-target-rw
cp -r <local-path> /tmp/argus-target-rw
/tmp/argus-target-rw exists and is non-empty before proceeding.mkdir -p /tmp/argus-output
Determine the AI provider (default: anthropic).
First, detect the Docker socket path (macOS Docker Desktop vs Linux):
DOCKER_SOCK=""
for sock in "$HOME/.docker/run/docker.sock" "/var/run/docker.sock" "/run/user/$(id -u)/docker.sock"; do
if [ -S "$sock" ]; then
DOCKER_SOCK="$sock"
break
fi
done
if [ -z "$DOCKER_SOCK" ]; then
echo "ERROR: No Docker socket found"
exit 1
fi
Then detect the host Docker socket GID so Phase 4 sandbox validation can use Docker-in-Docker:
DOCKER_GID=$(stat -f '%g' "$DOCKER_SOCK" 2>/dev/null || stat -c '%g' "$DOCKER_SOCK" 2>/dev/null || echo "")
Then run (include --group-add only when DOCKER_GID is non-empty):
docker run --rm \
-v /tmp/argus-target-rw:/workspace \
-v "$DOCKER_SOCK":/var/run/docker.sock \
-v /tmp/argus-output:/output \
-e ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY" \
${DOCKER_GID:+--group-add "$DOCKER_GID"} \
--entrypoint python \
argus-complete \
/app/scripts/hybrid_analyzer.py /workspace \
--output-dir /output \
--enable-ai-enrichment \
--ai-provider anthropic
The --group-add flag grants the container user access to the host Docker socket, enabling Phase 4 sandbox validation (Docker-in-Docker). Without it, Phase 4 is skipped with a "Permission denied" warning.
Adjustments based on arguments:
--ai-provider openai: replace -e ANTHROPIC_API_KEY=... with -e OPENAI_API_KEY="$OPENAI_API_KEY" and set --ai-provider openai.--ai-provider ollama: remove the API key env var, add --network host to the docker run flags, and set --ai-provider ollama.ls -la /tmp/argus-output/
/tmp/argus-output/argus-report.json or similar) and the Markdown report if present.