mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(installer): pull images before the first start (#3248)
This commit is contained in:
@@ -2267,10 +2267,14 @@ function Invoke-FluxerInstall {
|
||||
exit 0
|
||||
}
|
||||
|
||||
Write-FluxerLine 'Pulling images. The first start pulls eighteen of them, which takes several minutes.'
|
||||
if ((Invoke-FluxerDocker @('compose', 'pull')) -ne 0) {
|
||||
Stop-Fluxer 'docker compose pull failed. Nothing was started.' $FluxerExitDownload
|
||||
}
|
||||
if ((Invoke-FluxerDocker @('compose', 'up', '-d')) -ne 0) {
|
||||
Stop-Fluxer 'docker compose up -d failed.' $FluxerExitUnhealthy
|
||||
}
|
||||
Wait-FluxerStack 'Waiting for the stack to report healthy. The first start pulls images and takes several minutes.'
|
||||
Wait-FluxerStack 'Waiting for the stack to report healthy.'
|
||||
$readyOrigin = Get-FluxerPublicOrigin $envPath
|
||||
if ($readyOrigin.Length -eq 0) {
|
||||
$readyOrigin = "https://$domainValue"
|
||||
|
||||
@@ -2245,11 +2245,15 @@ if [ "$opt_no_start" -eq 1 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
fluxer_say 'Pulling images. The first start pulls eighteen of them, which takes several minutes.'
|
||||
if ! $fluxer_engine compose pull; then
|
||||
fluxer_fail 4 "$fluxer_engine compose pull failed in $opt_dir. Nothing was started."
|
||||
fi
|
||||
fluxer_say 'Starting the stack.'
|
||||
if ! $fluxer_engine compose up -d; then
|
||||
fluxer_fail 6 "$fluxer_engine compose up -d failed in $opt_dir. Read $fluxer_engine compose logs there."
|
||||
fi
|
||||
fluxer_say 'Waiting for every service to report ready. This takes several minutes on the first start, which pulls eighteen images.'
|
||||
fluxer_say 'Waiting for every service to report ready.'
|
||||
if ! fluxer_wait_ready; then
|
||||
fluxer_fail 6 "The stack is not ready after $FLUXER_READY_TIMEOUT seconds. $(fluxer_not_ready_detail)
|
||||
Read $fluxer_engine compose logs in $opt_dir."
|
||||
|
||||
Reference in New Issue
Block a user