Fix type mismatches across Unraid UI pages (SystemInfo, ServerVars, Notification properties), replace unavailable Mantine components (ScrollArea.Autosize, IconHardDrive), correct Orchis theme types, add missing tRPC endpoints (users, syslog, notification actions), and configure docker-compose for Traefik reverse proxy on dockerproxy network with unmarr.xtrm-lab.org routing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.2 KiB
Bash
Executable File
39 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# Build and push Homarr Unraid UI to Gitea registry
|
|
# Uses multi-stage Dockerfile to build inside Docker
|
|
|
|
set -e
|
|
|
|
REGISTRY="git.xtrm-lab.org"
|
|
IMAGE_NAME="jazzymc/homarr"
|
|
TAG="${1:-latest}"
|
|
|
|
echo "=== Building Homarr Unraid UI ==="
|
|
echo "Using multi-stage Docker build (no local dependencies required)"
|
|
echo ""
|
|
|
|
# Build Docker image using the multi-stage Dockerfile
|
|
echo "Building Docker image (this may take 5-10 minutes)..."
|
|
docker build -f Dockerfile.unraid -t "${REGISTRY}/${IMAGE_NAME}:${TAG}" .
|
|
|
|
# Login to Gitea registry (if not already logged in)
|
|
echo ""
|
|
echo "Logging into Gitea registry..."
|
|
docker login "${REGISTRY}" || echo "Already logged in or use: docker login ${REGISTRY}"
|
|
|
|
# Push to registry
|
|
echo ""
|
|
echo "Pushing to registry..."
|
|
docker push "${REGISTRY}/${IMAGE_NAME}:${TAG}"
|
|
|
|
echo ""
|
|
echo "=== Build Complete ==="
|
|
echo "Image: ${REGISTRY}/${IMAGE_NAME}:${TAG}"
|
|
echo ""
|
|
echo "To deploy on Unraid:"
|
|
echo "1. SSH to Unraid: ssh root@192.168.10.20 -p 422"
|
|
echo "2. Create directory: mkdir -p /mnt/user/appdata/unmarr/{data,configs}"
|
|
echo "3. Copy docker-compose.unraid.yml to Unraid"
|
|
echo "4. Set UNRAID_API_KEY in environment"
|
|
echo "5. Run: docker compose -f docker-compose.unraid.yml up -d"
|