Skip to content
Merged

4v6 #66

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
huntarr/4sonarr:latest
huntarr/4sonarr:${{ github.sha }}
huntarr/huntarr:latest
huntarr/huntarr:${{ github.sha }}

# 7b) Build & Push if on 'dev' branch
- name: Build and Push (dev)
Expand All @@ -73,8 +73,8 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
huntarr/4sonarr:dev
huntarr/4sonarr:${{ github.sha }}
huntarr/huntarr:dev
huntarr/huntarr:${{ github.sha }}

# 7c) Build & Push if it's a tag/release
- name: Build and Push (release)
Expand All @@ -85,8 +85,8 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
huntarr/4sonarr:${{ steps.meta.outputs.VERSION }}
huntarr/4sonarr:latest
huntarr/huntarr:${{ steps.meta.outputs.VERSION }}
huntarr/huntarr:latest

# 7d) Build & Push for any other branch
- name: Build and Push (feature branch)
Expand All @@ -97,8 +97,8 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
huntarr/4sonarr:${{ steps.meta.outputs.BRANCH }}
huntarr/4sonarr:${{ github.sha }}
huntarr/huntarr:${{ steps.meta.outputs.BRANCH }}
huntarr/huntarr:${{ github.sha }}

# 7e) Just build on pull requests
- name: Build (PR)
Expand Down
47 changes: 19 additions & 28 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,40 +1,31 @@
FROM python:3.9-slim
WORKDIR /app

# Install dependencies
COPY requirements.txt .
COPY primary/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install Flask for the web interface
RUN pip install --no-cache-dir flask

# Create directory structure
RUN mkdir -p /app/primary /app/templates /app/static/css /app/static/js /config/stateful /config/settings /config/user

# Copy application files
COPY *.py ./
COPY utils/ ./utils/
COPY web_server.py ./
# Create templates directory and copy index.html
RUN mkdir -p templates static/css static/js
COPY primary/ ./primary/
COPY templates/ ./templates/
COPY static/ ./static/
# Create required directories
RUN mkdir -p /config/stateful /config/settings
# Default environment variables
ENV API_KEY="your-api-key" \
API_URL="http://your-sonarr-address:8989" \
API_TIMEOUT="60" \
HUNT_MISSING_SHOWS=1 \
HUNT_UPGRADE_EPISODES=5 \
SLEEP_DURATION=900 \
STATE_RESET_INTERVAL_HOURS=168 \
RANDOM_SELECTION="true" \
MONITORED_ONLY="true" \
DEBUG_MODE="false" \
ENABLE_WEB_UI="true" \
SKIP_FUTURE_EPISODES="true" \
SKIP_SERIES_REFRESH="false"
COPY primary/default_configs.json .

# Default environment variables (minimal set)
ENV APP_TYPE="sonarr"

# Create volume mount points
VOLUME ["/config"]

# Expose web interface port
EXPOSE 8988
# Add startup script that conditionally starts the web UI
COPY start.sh .
EXPOSE 9705

# Add startup script
COPY primary/start.sh .
RUN chmod +x start.sh
# Run the startup script which will decide what to launch

# Run the startup script
CMD ["./start.sh"]
368 changes: 81 additions & 287 deletions README.md

Large diffs are not rendered by default.

166 changes: 0 additions & 166 deletions config.py

This file was deleted.

6 changes: 6 additions & 0 deletions primary/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""
Huntarr - Find Missing & Upgrade Media Items
A unified tool for Sonarr, Radarr, Lidarr, and Readarr
"""

__version__ = "4.0.0"
Loading