Fix workshop script WSL path conversion and convert scripts to Unix line endings; update README with installation instructions

This commit is contained in:
GitHub Copilot
2026-03-28 14:28:31 +01:00
parent 1739810044
commit c49774d629
2 changed files with 19 additions and 2 deletions
+17 -1
View File
@@ -33,11 +33,27 @@ Basisrouten nach dem Start:
1. Docker + Compose (`docker compose` oder `docker-compose`) 1. Docker + Compose (`docker compose` oder `docker-compose`)
2. Optional fuer TLS-Challenges: `easy-rsa`, `openssl`, `wireshark` 2. Optional fuer TLS-Challenges: `easy-rsa`, `openssl`, `wireshark`
Docker muss in Linux installiert sein oder Docker Desktop mit WSL-Integration muss verfuegbar sein.
### Installation
#### Windows
Installiere die erforderlichen Tools mit winget:
```powershell
winget install --id Microsoft.VisualStudioCode -e
winget install --id Git.Git -e
winget install --id Docker.DockerDesktop -e
```
Nach der Installation von Docker Desktop aktiviere die WSL-Integration in den Einstellungen.
Plattformhinweise: Plattformhinweise:
- Linux: Docker Engine oder Docker Desktop - Linux: Docker Engine oder Docker Desktop
- macOS: Docker Desktop (falls `make` fehlt -> `xcode-select --install`) - macOS: Docker Desktop (falls `make` fehlt -> `xcode-select --install`)
- Windows: Docker Desktop + WSL Integration aktiv - Windows: Docker Desktop mit aktivierter WSL-Integration
## Schnellstart ## Schnellstart
+2 -1
View File
@@ -10,7 +10,8 @@ if (-not (Get-Command wsl.exe -ErrorAction SilentlyContinue)) {
} }
$repoWinPath = (Resolve-Path (Join-Path $PSScriptRoot "..")).Path $repoWinPath = (Resolve-Path (Join-Path $PSScriptRoot "..")).Path
$repoWslPath = (& wsl.exe wslpath -a "$repoWinPath").Trim() $drive = $repoWinPath[0].ToString().ToLower()
$repoWslPath = "/mnt/$drive/" + $repoWinPath.Substring(3) -replace '\\', '/'
if (-not $repoWslPath) { if (-not $repoWslPath) {
Write-Error "Konnte den WSL Pfad fuer das Repo nicht ermitteln." Write-Error "Konnte den WSL Pfad fuer das Repo nicht ermitteln."