feat: Add new API endpoints and HTML pages for ML model management
- Implemented HTML pages for datasets, models, training, testing, and results. - Created API endpoints for managing repositories, results, tests, and training sessions. - Added functionality for streaming training progress via Server-Sent Events (SSE). - Introduced a Dockerfile for the ML runner with necessary dependencies. - Developed an SDK for user code execution within the runner container. - Enhanced CSS styles for improved UI layout and navigation. - Established a layout template for consistent HTML structure across pages. - Added JavaScript for dynamic interactions on the models page. - Implemented WebSocket handling for real-time communication with kiosk devices and controllers. - Implemented model registration and management API at /api/models - Added Gitea proxy API for repository interactions at /api/repos - Created results API for listing and comparing training results at /api/results - Developed training management API for enqueueing and retrieving training jobs at /api/trainings - Introduced SSE endpoint for live training progress updates - Added HTML pages for models, datasets, and training management - Created a Dockerfile for the ML runner with necessary dependencies - Developed SDK for user code execution within the runner container - Enhanced CSS styles for improved UI/UX - Implemented WebSocket communication for real-time device and controller interactions in the kiosk system
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
PORT=3007
|
||||
|
||||
# Auth condiviso
|
||||
JWT_SECRET=change-me
|
||||
INTERNAL_API_KEY=change-me
|
||||
AUTH_LOGIN_URL=https://auth.mebboat.it/login
|
||||
|
||||
# Postgres (db ml)
|
||||
PG_HOST=meb-postgres
|
||||
PG_PORT=5432
|
||||
DB_USER=meb
|
||||
DB_PASSWORD=meb
|
||||
ML_DB=ml
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=meb-redis
|
||||
REDIS_PORT=6379
|
||||
|
||||
# MinIO (bucket unico)
|
||||
MINIO_ENDPOINT=minio
|
||||
MINIO_PORT=9000
|
||||
MINIO_USE_SSL=false
|
||||
MINIO_ACCESS_KEY=
|
||||
MINIO_SECRET_KEY=
|
||||
MINIO_BUCKET=ml
|
||||
|
||||
# InfluxDB
|
||||
INFLUX_URL=http://meb-influx:8086
|
||||
INFLUX_TOKEN=
|
||||
INFLUX_ORG=meb
|
||||
INFLUX_BUCKET=ml_metrics
|
||||
|
||||
# Gitea (self-hosted esterno)
|
||||
GITEA_URL=https://git.mebboat.it
|
||||
GITEA_TOKEN=
|
||||
|
||||
# API service
|
||||
API_URL=http://api:3003
|
||||
|
||||
# Training runtime
|
||||
ML_TRAIN_CONCURRENCY=1
|
||||
ML_RUNNER_IMAGE=meb-ml-runner:latest
|
||||
ML_RUNNER_TMP=/var/ml/tmp
|
||||
ML_GITCACHE_DIR=/var/ml/gitcache
|
||||
ML_MAX_UPLOAD_MB=500
|
||||
|
||||
Reference in New Issue
Block a user