-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-built Docker image #42
Comments
Reserved an address https://hub.docker.com/r/rdavidoff/twitch-channel-points-miner-v2 |
Docker container is only useful when you already have a cookie file. Docker can only run CLI programs, so it will not start Google Chrome in the non-headless mode. However, there are workarounds. I think I should experiment with a VNC server in a container, this may be a good cross-plaform approach. More info: https://www.howtogeek.com/devops/how-to-run-gui-applications-in-a-docker-container/ |
|
|
First off all thanks for continuing with the project One question why are you coping the run.py into the docker ? |
You're welcome. Because of this #29 |
So everytime you change something in your run we will have to redeploy the container ? In linux it gives this in the error logs exec /usr/local/bin/python: exec format error |
Good point. I've just started using Docker today, so I'm still learning about it. Copying was indeed unnecessary. |
Any update on armv7 support? |
You can test it with 1.5.0. Pretty good chance that it should work now. |
Man, GitHub action that builds a docker image takes ages to complete. It's been more than 2 hours already. I guess I should just build and push it manually. Will do so, stay tuned for an update. |
1.5.0 is now on https://hub.docker.com/r/rdavidoff/twitch-channel-points-miner-v2 Please test and report back any issues and suggestions! |
exec /usr/local/bin/python: exec format error well I think that cuz im using an arm processor |
Right, seems like I need to create a custom builder for Docker to make it build multi-arch images. Stay tuned. |
alright btw thx for ur all hard work |
Notes for me:
but it still hangs on upgrading pip may fix this hanging, checking. |
Well, it seems that it is not hanging, but compiling Trying to create
|
ARG TARGETPLATFORM
&& if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
pip install --index-url=https://www.piwheels.org/simple --no-cache-dir -r requirements.txt; \
else \
pip install -r requirements.txt; \
fi \ Condition works, but now it can't get pillow from piwheels 😩:
Now I'm trying to only get pandas from piwheels: && if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
pip install --index-url=https://www.piwheels.org/simple -U pandas; \
fi \
&& pip install -r requirements.txt \ Man, this is tiresome. And pandas are only needed for Analytics to work! 😫 |
Same error for pandas. Indeed, armv7 is not listed in https://pypi.org/project/pandas/#files I'll try one more trick with |
@Kazushi-0 are you using Analytics on your armv7 miner instance(s)? Maybe I should just drop pandas for armv7. |
Notes for me:
|
Man, this was quite a challenge! && if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
apt-get -y install python3-pandas; \
sed -i '/pandas/d' requirements.txt; \
fi \
&& pip install -r requirements.txt \ seems to did the job. |
1.5.0 is now on https://hub.docker.com/r/rdavidoff/twitch-channel-points-miner-v2 for Please test and report back any issues and suggestions! |
Starts on pi3 but gets allot of 16/11 23:49:04 - Error with GQLOperations (ReportMenuItem): HTTPSConnectionPool(host='gql.twitch.tv', port=443): Max retries exceeded with url: /gql (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff7d91d220>: Failed to establish a new connection: [Errno 110] Connection timed out')) and streamer does not exist Do i need to regenrate cookies or change the run.py ? |
Either a connection issue or too many concurrent connections. If your miner is still able to get WATCH and CLAIM points between those errors, then you can just ignore them.
Does this streamer really exist? Better double-check that. 😉
If you already have a "console" cookie and your miner is claiming bonuses, you don't need to obtain a new cookie. |
sorry for late reply... btw Thx for making Docker image for easy installation |
about the Analytics if you cant do that then i can live without it... |
I managed to add I added it just for the sake of challenge. :) |
what a gigachad you are dude btw did you already release to docker image?for Analytics? |
You're doing it right, but it can't see the Did you pull the latest What |
Yes, im pulling the latest docker image Os/Arch linux/arm/v7 |
Notes for me: Running an
where I'm going to replace |
do you have to put -p 5000:5000 on docker run? |
Yes, for Analytics. This publishes or exposes the port ( |
alright btw how ur testing doing? |
It's currently building images https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/actions/runs/3488493817/jobs/5837384999 I'll post the result, stay tuned. |
Didn't work. What really strange is this:
python3-pandas is already the newest version (0.23.3+dfsg-3). 🤷♂️🙄 |
same i got the same error while it already the newest version |
Yes. You can disable analytics for now and run the miner without it while I'm figuring out the solution to make it see |
alright... goodluck |
Now it sees modules installed by apt-get. But: root@89662d16d8ab:~# python
Python 3.8.15 (default, Nov 16 2022, 07:31:08)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 18, in <module>
raise ImportError(
ImportError: Missing required dependencies ['numpy']
>>> import numpy
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 40, in <module>
from . import multiarray
File "/usr/lib/python3/dist-packages/numpy/core/multiarray.py", line 12, in <module>
from . import overrides
File "/usr/lib/python3/dist-packages/numpy/core/overrides.py", line 6, in <module>
from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' Man, this is too much. 😞 |
I found the culprit.
And it doesn't work with python 3.8. So I guess we're gonna have to downgrade to python 3.7 on This needs some testing. |
Created a different
Adding Now there are two solutions:
🤔 I guess I will stay with a second one. I can just manually stop the GH action when it is not an important commit and when I don't want it to rebuild images. P.S. Also changed from So much work just to make Analytics work on |
Not so bad, it took "only" 2h 40m 7s to build the @Kazushi-0 please pull the latest |
Now im having a problem pulling the image saying Docker run command : Edited : after doing that command add volume to my cookie and other stuff |
|
again sorry for late reply HOLY SHIT, THX MAN |
This is not the first time people asking for a pre-built Docker image, so I will add this to my TODO list.
Originally posted by @rdavydov in Tkd-Alex#651 (comment)
The text was updated successfully, but these errors were encountered: