[PR #133] [CLOSED] fix: install Claude Code CLI globally for Docker support #134

Closed
opened 2026-02-27 08:09:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/KeygraphHQ/shannon/pull/133
Author: @satnamra
Created: 2/14/2026
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • fce0fa0 fix: install Claude Code CLI globally for Docker support

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 Dockerfile (+3 -0)

📄 Description

Problem

Shannon security tests were blocked due to missing claude-code binary in Docker container. Error: spawn node ENOENT

Root Cause

Dockerfile included nodejs-22 but Claude Code CLI was not installed globally.

Solution

Add npm install -g @anthropic-ai/claude-code to Dockerfile.

Impact

  • Unblocks Shannon security test scans
  • Required by claude-agent-sdk for AI code execution
  • Fixes Docker build failures

Testing

  • Manual verification that @anthropic-ai/claude-code is a standard npm package
  • Ready for CI/CD validation

Closes Shannon: Run First Test Scan task


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/KeygraphHQ/shannon/pull/133 **Author:** [@satnamra](https://github.com/satnamra) **Created:** 2/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`fce0fa0`](https://github.com/KeygraphHQ/shannon/commit/fce0fa0cc05cae6281e2e6051d49406bffef51d7) fix: install Claude Code CLI globally for Docker support ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+3 -0) </details> ### 📄 Description ## Problem Shannon security tests were blocked due to missing `claude-code` binary in Docker container. Error: `spawn node ENOENT` ## Root Cause Dockerfile included nodejs-22 but Claude Code CLI was not installed globally. ## Solution Add `npm install -g @anthropic-ai/claude-code` to Dockerfile. ## Impact - Unblocks Shannon security test scans - Required by `claude-agent-sdk` for AI code execution - Fixes Docker build failures ## Testing - Manual verification that `@anthropic-ai/claude-code` is a standard npm package - Ready for CI/CD validation Closes Shannon: Run First Test Scan task --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 08:09:24 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shannon-KeygraphHQ#134
No description provided.