Sign inSign up

pesky/tb-health-check

By pesky

•Updated 9 days ago

ToughBlue IT Health Check — Flask app for on-site assessments, scoring, and client reports.

Image
Developer tools
0

434

pesky/tb-health-check repository overview

⁠ToughBlue IT Health Check

Web application for ToughBlue Uganda’s IT Health Check programme: capture on-site assessment answers, generate scored client reports, and print engineer questionnaires.

Built with Python 3.12, Flask, and Gunicorn. Assessment data is stored in SQLite on a persistent volume.

⁠What it does

  • Tabbed questionnaire with triage-based sections (core + optional)
  • Draft saving, preview reports, and final completion workflow
  • Scored reports: domain charts, benchmarks, findings, and recommendations
  • Printable client questionnaire (/print)
  • Health endpoint for monitoring (/health)

⁠Image tags

TagUse
stageStaging environment (branch develop)
ltsProduction (branch main)
sha-<commit>Specific build for rollback

⁠Quick start (Docker run)

docker run -d \
  --name tb-health-check \
  -p 8095:8080 \
  -e SECRET_KEY="replace-with-a-long-random-string" \
  -e FLASK_ENV=production \
  -v tb-healthcheck-data:/app/data \
  --restart unless-stopped \
  pesky/tb-health-check:stage

Open http://localhost:8095⁠

Check health:

curl http://localhost:8095/health

Clone the GitLab repo and use the production compose file:

git clone ssh://[email protected]:2424/tb-owners/it-health-check.git
cd it-health-check
cp .env.example .env
# Edit .env: SECRET_KEY, HEALTHCHECK_TAG (stage or lts)

docker compose -f docker-compose.prod.yml pull
docker compose -f docker-compose.prod.yml up -d

⁠Environment variables

VariableRequiredDescription
SECRET_KEYYes (production)Flask session secret — use a long random string
FLASK_ENVRecommendedSet to production on servers

⁠Ports

ContainerHost (default)
80808095 (configurable via HOST_PORT in Compose)

⁠Data persistence

Mount /app/data to keep SQLite assessments across container restarts:

-v tb-healthcheck-data:/app/data

⁠Source & support

Tag summary

Content type

Image

Digest

sha256:4ac7c05e8…

Size

47.5 MB

Last updated

9 days ago

docker pull pesky/tb-health-check:sha-e254abd3