Files
SITER-Solar/solar-analysis/run-analysis.sh
Charles N Wyble 400764a9ff feat: initial project setup with bash-based NREL analysis
- Add bash script (siter-solar-analysis.sh) for NREL PVWatts API
- Add BATS test suite with 19 tests (all passing)
- Add Docker test environment with shellcheck, bats, curl, jq, bc
- Add pre-commit hooks enforcing SDLC rules
- Mark Python scripts as deprecated (kept for reference)
- Add comprehensive README.md and AGENTS.md documentation
- Add .env.example for configuration template
- Add .gitignore excluding private data (base-bill/, .env)
- Add SVG diagrams for presentation
- Redact all private location data (use SITER placeholder)

All work done following SDLC: Docker-only development, TDD approach,
conventional commits, code/docs/tests synchronized.

Generated with Crush

Assisted-by: GLM-5 via Crush <crush@charm.land>
2026-02-27 16:45:41 -05:00

17 lines
413 B
Bash
Executable File

#!/bin/bash
# Run NREL solar analysis in Docker container
# Build once: docker build -t siter-solar-nrel .
# Run anytime: ./run-analysis.sh --scenarios
set -e
IMAGE_NAME="siter-solar-nrel"
if ! docker image inspect "$IMAGE_NAME" &>/dev/null; then
echo "Error: Docker image '$IMAGE_NAME' not found."
echo "Build it first: docker build -t $IMAGE_NAME ."
exit 1
fi
docker run --rm "$IMAGE_NAME" "$@"