mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-09 21:13:09 +00:00
Fix dev-start podman-compose handling
This commit is contained in:
parent
8b904c1919
commit
173bea0ac1
1 changed files with 10 additions and 0 deletions
|
|
@ -52,7 +52,17 @@ try {
|
||||||
# Start PostgreSQL container
|
# Start PostgreSQL container
|
||||||
Write-Host "Starting PostgreSQL..."
|
Write-Host "Starting PostgreSQL..."
|
||||||
$composeFile = Join-Path $root 'compose/dev.yml'
|
$composeFile = Join-Path $root 'compose/dev.yml'
|
||||||
|
|
||||||
podman-compose -f $composeFile up -d 2>$null
|
podman-compose -f $composeFile up -d 2>$null
|
||||||
|
$composeExitCode = $LASTEXITCODE
|
||||||
|
if ($composeExitCode -ne 0) {
|
||||||
|
podman container exists likwid-postgres 2>$null
|
||||||
|
$containerExistsExitCode = $LASTEXITCODE
|
||||||
|
if ($containerExistsExitCode -ne 0) {
|
||||||
|
throw "Failed to start PostgreSQL via podman-compose (exit code: $composeExitCode)."
|
||||||
|
}
|
||||||
|
Write-Host "Warning: podman-compose returned exit code $composeExitCode, but likwid-postgres exists. Continuing."
|
||||||
|
}
|
||||||
|
|
||||||
# Wait for PostgreSQL to be ready
|
# Wait for PostgreSQL to be ready
|
||||||
$maxWait = 30
|
$maxWait = 30
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue