Fix workshop script WSL path conversion and convert scripts to Unix line endings; update README with installation instructions
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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."
|
||||||
|
|||||||
Reference in New Issue
Block a user