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>
This commit is contained in:
16
solar-analysis/run-analysis.sh
Executable file
16
solar-analysis/run-analysis.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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" "$@"
|
||||
Reference in New Issue
Block a user