Skip to content

Commit

Permalink
docker: small fixes (#381)
Browse files Browse the repository at this point in the history
Co-authored-by: Spoked <Spoked@localhost>
  • Loading branch information
dreulavelle and Spoked authored Jun 11, 2024
1 parent 075f918 commit 5e1eada
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 21 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apk add --no-cache \
curl

# Upgrade pip and install poetry
RUN pip install --upgrade pip && pip install poetry==1.4.2
RUN pip install --upgrade pip && pip install poetry==1.8.3

ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
Expand Down Expand Up @@ -64,7 +64,7 @@ RUN mkdir -p /usr/share/fonts/nerd-fonts && \
fc-cache -fv

# Install Poetry
RUN pip install poetry==1.4.2
RUN pip install poetry==1.8.3

# Create user and group
RUN addgroup -g 1000 iceberg && \
Expand All @@ -73,9 +73,6 @@ RUN addgroup -g 1000 iceberg && \
# Create fish config directory
RUN mkdir -p /home/iceberg/.config/fish

# Expose ports
EXPOSE 3000 8080 5572

# Set environment variable to force color output
ENV FORCE_COLOR=1
ENV TERM=xterm-256color
Expand Down
2 changes: 1 addition & 1 deletion backend/program/content/overseerr.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def validate(self) -> bool:
return False
return response.ok
except (ConnectionError, RetryError, MaxRetryError, NewConnectionError) as e:
logger.error(f"Overseerr URL is not reachable: {str(e)}")
logger.error(f"Overseerr URL is not reachable, or it timed out")
return False
except Exception as e:
logger.error(f"Unexpected error during Overseerr validation: {str(e)}")
Expand Down
6 changes: 2 additions & 4 deletions backend/program/scrapers/orionoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def __init__(self, hash_cache):
self.parse_logging = False
self.max_calls = 100 if not self.is_premium else 2500
self.period = 86400 if not self.is_premium else 3600
self.minute_limiter = RateLimiter(
max_calls=self.max_calls, period=self.period, raise_on_limit=True
)
self.minute_limiter = RateLimiter(max_calls=self.max_calls, period=self.period)
self.second_limiter = RateLimiter(max_calls=1, period=5)
self.rtn = RTN(self.settings_model, self.ranking_model)
self.hash_cache = hash_cache
Expand All @@ -54,7 +52,7 @@ def validate(self) -> bool:
return False
try:
url = f"https://api.orionoid.com?keyapp={KEY_APP}&keyuser={self.settings.api_key}&mode=user&action=retrieve"
response = get(url, retry_if_failed=False)
response = get(url, retry_if_failed=True, timeout=30)
if response.is_ok and hasattr(response.data, "result"):
if response.data.result.status != "success":
logger.error(
Expand Down
1 change: 1 addition & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
dockerfile: Dockerfile
image: iceberg:dev
container_name: iceberg
restart: unless-stopped
network_mode: host
tty: true
environment:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
iceberg:
image: spoked/iceberg:latest
container_name: iceberg
network_mode: host
restart: unless-stopped
tty: true
environment:
- PUID=1000
Expand All @@ -12,5 +12,5 @@ services:
volumes:
- ./data:/iceberg/data
- /mnt:/mnt
# ports: # disabled when network_mode set to `host`
# - "3000:3000"
ports:
- "3000:3000"
14 changes: 7 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description = "Plex torrent streaming through Real Debrid and 3rd party services
authors = ["Iceberg Developers"]
license = "GPL-3.0"
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.11"
Expand Down

0 comments on commit 5e1eada

Please sign in to comment.