Enhance Docker image pulling process and remove Bitcoin Core UI
- Improved the Docker image pulling process in the startup script with a spinner for better user feedback. - Added a tip for monitoring progress in Docker Desktop. - Removed the Bitcoin Core HTML UI file as it is no longer needed; replaced with connection info alert in the app view. - Updated the app view to provide direct connection details for Bitcoin Core instead of opening a separate page.
This commit is contained in:
+21
-11
@@ -44,26 +44,36 @@ fi
|
||||
|
||||
if [ "$FIRST_RUN" = true ]; then
|
||||
echo "📦 Pulling Docker images (this will take a while)..."
|
||||
echo " 💡 Tip: You can monitor progress in Docker Desktop"
|
||||
echo ""
|
||||
|
||||
# Pull in stages to show progress
|
||||
echo " [1/4] Pulling Bitcoin & Lightning..."
|
||||
$COMPOSE_CMD pull bitcoin lnd
|
||||
# Pull all images quietly
|
||||
$COMPOSE_CMD pull --quiet &
|
||||
PULL_PID=$!
|
||||
|
||||
echo " [2/4] Pulling Web Apps..."
|
||||
$COMPOSE_CMD pull homeassistant grafana searxng ollama
|
||||
# Show a simple spinner while pulling
|
||||
spin='-\|/'
|
||||
i=0
|
||||
echo -n " Downloading images... "
|
||||
while kill -0 $PULL_PID 2>/dev/null; do
|
||||
i=$(( (i+1) %4 ))
|
||||
printf "\r Downloading images... ${spin:$i:1}"
|
||||
sleep 0.2
|
||||
done
|
||||
|
||||
echo " [3/4] Pulling Bitcoin Services..."
|
||||
$COMPOSE_CMD pull btcpay mempool-web mempool-api fedimint
|
||||
wait $PULL_PID
|
||||
PULL_EXIT=$?
|
||||
printf "\r Downloading images... ✅\n"
|
||||
|
||||
echo " [4/4] Pulling Collaboration Tools..."
|
||||
$COMPOSE_CMD pull onlyoffice penpot-frontend penpot-backend endurain morphos
|
||||
if [ $PULL_EXIT -ne 0 ]; then
|
||||
echo "❌ Failed to pull some images. Continuing anyway..."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "✅ All images downloaded!"
|
||||
else
|
||||
echo "📦 Checking for image updates..."
|
||||
$COMPOSE_CMD pull --quiet
|
||||
echo "📦 Checking for image updates (quietly)..."
|
||||
$COMPOSE_CMD pull --quiet 2>/dev/null || true
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user