Remove macOS and Apple container references

- Remove Containerfile and .containerignore (Apple container specific)
- Update package.json to remove Apple container scripts
- Replace macOS-specific build scripts with Docker-focused versions
- Update README to prioritize Docker over Apple container
- Update DEVELOPMENT.md to remove macOS-first approach
- Update demo script to remove Apple container references
- Update workflow to remove Containerfile path triggers
- Simplify project to be Docker-first for cross-platform compatibility
This commit is contained in:
2026-01-18 13:44:09 +01:00
parent a891d736ef
commit 393c798080
10 changed files with 42 additions and 216 deletions

View File

@@ -1,12 +1,11 @@
#!/bin/bash
# JMESPath Testing Tool - Build Script
# Targets macOS with Apple container command as first-class environment
set -e
echo "🍎 JMESPath Testing Tool - macOS Build Script"
echo "============================================="
echo "🚀 JMESPath Testing Tool - Build Script"
echo "======================================="
echo ""
# Check Node.js version
@@ -31,27 +30,19 @@ npm install
echo "🔨 Building production bundle..."
npm run build
# Container build - prioritize Apple container command
if command -v container &> /dev/null; then
echo "🍎 Building container with Apple container command..."
container build -t jmespath-playground .
# Container build with Docker
if command -v docker &> /dev/null; then
echo "🐳 Building Docker container..."
docker build -t jmespath-playground .
else
# Fallback to Docker if available
if command -v docker &> /dev/null; then
echo "🐳 Apple container command not found, falling back to Docker..."
docker build -t jmespath-playground .
else
echo "⚠️ No container runtime found. Skipping container build."
echo " Install Apple container command or Docker to build containers."
fi
echo "⚠️ Docker not found. Skipping container build."
echo " Install Docker to build containers."
fi
echo "✅ Build completed successfully!"
echo ""
echo "To run the application:"
echo " npm run serve # Serve production build locally"
if command -v container &> /dev/null; then
echo " container run -p 3000:3000 jmespath-playground # Run with Apple container"
elif command -v docker &> /dev/null; then
echo " docker run -p 3000:3000 jmespath-playground # Run with Docker"
if command -v docker &> /dev/null; then
echo " docker run -p 3000:3000 jmespath-playground # Run with Docker"
fi

View File

@@ -1,21 +1,13 @@
#!/bin/bash
# JMESPath Testing Tool - Development Script
# Optimized for macOS development environment
set -e
echo "🍎 JMESPath Testing Tool - macOS Development"
echo "==========================================="
echo "🚀 JMESPath Testing Tool - Development"
echo "====================================="
echo ""
# Check environment
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "✅ Running on macOS"
else
echo "⚠️ This script is optimized for macOS but will attempt to run anyway."
fi
# Check Node.js
if command -v node &> /dev/null; then
echo "✅ Node.js version: $(node --version)"