rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.1k stars 324 forks source link

Docker #447

Closed TUBEOF closed 5 months ago

TUBEOF commented 5 months ago

Describe the bug

Unable to run using Docker compose or run.

Steps to reproduce

Starting with "docker compose up" or "docker run"

Expected behavior

-

Operating system

Debian 12

Python version

3.12.1

Miner version

latest

Other relevant software versions

No response

Logs

Using docker compose:

root@tubeof:/var/lib/twitch-miner/official_tubeof# docker compose up [+] Running 1/0 ✔ Container twitch_miner-official_tubeof Recreated 0.0s Attaching to twitch_miner-official_tubeof twitch_miner-official_tubeof | /usr/local/bin/python: can't find '__main__' module in '/usr/src/app/run.py' twitch_miner-official_tubeof exited with code 0

Using docker run:

root@tubeof:/var/lib/twitch-miner/official_tubeof# docker run -v $(pwd)/analytics:/usr/src/app/analytics -v $(pwd)/cookies:/usr/src/app/cookies -v $(pwd)/logs:/usr/src/app/logs -v $(pwd)/run.py:/usr/src/app/run.py:ro -p 5000:5000 rdavidoff/twitch-channel-points-miner-v2 /usr/local/bin/python: can't find '__main__' module in '/usr/src/app/run.py'

Additional context

My compose file: https://gist.github.com/TUBEOF/9035859e360b66cf684fd04a04b42df4

Seems like the imagine is broken or something?

TUBEOF commented 5 months ago

Nvm my bad, i just needed to create/download the run.py first... I would recommend adding this to the Docker install/usage section to avoid further mistakes like this.

TUBEOF commented 5 months ago

Or maybe just include the latest example.py in the docker image :D

rdavydov commented 5 months ago

Or maybe just include the latest example.py in the docker image :D

It is already there.

rdavydov commented 5 months ago

README also has this info:

image

You just need to read it thoroughly. ;)