Some checks failed
Build and Push Development Images / build-base (push) Has been cancelled
Build and Push Development Images / build-rust (push) Has been cancelled
Build and Push Development Images / build-go (push) Has been cancelled
Build and Push Development Images / build-python (push) Has been cancelled
Build and Push Development Images / build-node (push) Has been cancelled
Build and Push Development Images / build-java (push) Has been cancelled
Build and Push Development Images / build-cpp (push) Has been cancelled
Build and Push Development Images / test-images (base) (push) Has been cancelled
Build and Push Development Images / test-images (cpp-dev) (push) Has been cancelled
Build and Push Development Images / test-images (go-dev) (push) Has been cancelled
Build and Push Development Images / test-images (java-dev) (push) Has been cancelled
Build and Push Development Images / test-images (node-dev) (push) Has been cancelled
Build and Push Development Images / test-images (python-dev) (push) Has been cancelled
Build and Push Development Images / test-images (rust-dev) (push) Has been cancelled
This commit establishes the foundation for language-specific development
container images used by CHORUS autonomous agents.
Features:
- Multi-stage Dockerfile with 7 layered images
- Base Debian Bookworm image with common tools
- Language-specific images: Rust, Go, Python, Node.js, Java, C/C++
- Standardized /workspace/{input,data,output} structure
- Automated CI/CD pipeline for weekly security updates
- Comprehensive test suite for all images
- Full documentation (README, USAGE, MAINTENANCE)
Images available:
- chorus/base:1.0.0 (~200MB)
- chorus/rust-dev:1.0.0 (~1.2GB)
- chorus/go-dev:1.0.0 (~600MB)
- chorus/python-dev:1.0.0 (~800MB)
- chorus/node-dev:1.0.0 (~700MB)
- chorus/java-dev:1.0.0 (~1.5GB)
- chorus/cpp-dev:1.0.0 (~900MB)
🤖 Generated with Claude Code (https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# Test script for Node.js development image
|
|
|
|
set -e
|
|
|
|
IMAGE="${REGISTRY:-registry.home.deepblack.cloud/chorus}/node-dev:latest"
|
|
|
|
echo "🧪 Testing Node.js image: $IMAGE"
|
|
|
|
# Test Node.js toolchain
|
|
echo " ✓ Checking Node.js toolchain..."
|
|
docker run --rm "$IMAGE" node --version > /dev/null || exit 1
|
|
docker run --rm "$IMAGE" npm --version > /dev/null || exit 1
|
|
|
|
# Test development tools
|
|
echo " ✓ Checking Node.js tools..."
|
|
docker run --rm "$IMAGE" which pnpm > /dev/null || exit 1
|
|
docker run --rm "$IMAGE" which yarn > /dev/null || exit 1
|
|
docker run --rm "$IMAGE" which tsc > /dev/null || exit 1
|
|
docker run --rm "$IMAGE" which eslint > /dev/null || exit 1
|
|
docker run --rm "$IMAGE" which prettier > /dev/null || exit 1
|
|
|
|
# Test execution capability
|
|
echo " ✓ Testing Node.js execution..."
|
|
docker run --rm "$IMAGE" node -e "console.log('hello')" || exit 1
|
|
|
|
# Test package installation
|
|
echo " ✓ Testing npm install..."
|
|
docker run --rm "$IMAGE" bash -c '
|
|
cd /tmp && \
|
|
npm init -y --quiet && \
|
|
npm install lodash --silent && \
|
|
node -e "const _ = require(\"lodash\"); console.log(_.VERSION)"
|
|
' || exit 1
|
|
|
|
echo "✅ Node.js image tests passed" |