Skip to content

Commit

Permalink
Docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
konkere committed Jan 18, 2024
1 parent 0875393 commit 8b113c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker_build_and_push_ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
REGISTRY: ghcr.io
Expand Down
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.10.13-slim

RUN mkdir -p /app /config ~/.config
RUN ln -s /config /root/.config/TorrUpd

WORKDIR /app

COPY requirements.txt .
COPY *.py .

RUN pip install --no-cache-dir -r requirements.txt

CMD [ "python", "torrent_updater.py" ]
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ Supports trackers: RuTracker and NNM-Club (hash comparison in topics) and TeamHD

Supports clients: qBittorrent, Transmission.

#### Host/venv run:
**Python 3.10** required.


``torrent_updater.py`` — main script.

``config.py``, ``client.py``, ``tracker.py`` — related modules.

#### Run in Docker:
``docker run -d --rm --name=torrupd -v /PATH/TO/HOST/DIR:/config ghcr.io/konkere/torrupd``

After first run fill data in files (in ``$HOME/.config/TorrUpd/`` directory):
#### After first run:
Fill data in files in ``$HOME/.config/TorrUpd/`` (or ``/PATH/TO/HOST/DIR`` for Docker) directory:

1. ``settings.conf``:

Expand Down

0 comments on commit 8b113c4

Please sign in to comment.