-Aggiunta configurazione tramite dockerfile per windows e linux

-Aggiunte github actions per la compilazione dei container e l'esposizione
This commit is contained in:
Alessio Dal Santo
2026-01-16 14:16:15 +01:00
parent 3465d43b08
commit 23c2788fcf
15 changed files with 2879 additions and 4 deletions
+38 -4
View File
@@ -115,20 +115,54 @@ Data-Coupler/
### Prerequisiti
- .NET 9.0 SDK
- Visual Studio 2022 o VS Code
- Docker (opzionale, per deployment containerizzato)
### Build
### Build Locale
```bash
dotnet build Data_Coupler.sln
```
### Esecuzione
### Esecuzione Locale
```bash
dotnet run --project Data_Coupler/Data_Coupler.csproj
```
L'applicazione sarà disponibile su:
- HTTP: http://localhost:5135
- HTTPS: https://localhost:7132
- HTTP: http://localhost:7550
### 🐳 Deployment Docker
**Quick Start con Docker:**
```bash
# Pull e run (immagine pubblica)
docker run -d -p 7550:7550 -v data-coupler-data:/var/lib/Data_Coupler ghcr.io/alessiodalsi/data-coupler:latest
# Con Docker Compose
docker-compose up -d
```
**Build Locale:**
```bash
# Linux
docker build -t data-coupler:local -f Dockerfile .
# Windows
docker build -t data-coupler:local-windows -f Dockerfile.windows .
# Script automatico (PowerShell)
.\build-docker.ps1 -Target all -Test
# Script automatico (Bash)
./build-docker.sh all
```
**Immagini Disponibili:**
- **Linux**: `ghcr.io/alessiodalsi/data-coupler:latest`
- **Windows**: `ghcr.io/alessiodalsi/data-coupler:latest-windows`
- **Dev**: `ghcr.io/alessiodalsi/data-coupler:dev-latest`
- **Staging**: `ghcr.io/alessiodalsi/data-coupler:staging-latest`
📚 **Documentazione Docker Completa**: Vedi [DOCKER_DEPLOYMENT.md](DOCKER_DEPLOYMENT.md) e [GITHUB_ACTIONS_SETUP.md](GITHUB_ACTIONS_SETUP.md)
## Caratteristiche di Sicurezza