-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
Providing a docker/image for "linux/arm/v7" (raspberry pi) ... could be marvelous ! #2349
Comments
hello dear, docker for arm v7 isn't possible |
Do you known what components are problematic for armv7 ? If they are related to gui or vnc ... I don't need them for api only |
@manatlan The project uses seleniarm/node-chromium as base image. I think the selenium maintainers don't provide an armv7 image. You could ask here https://github.com/SeleniumHQ/docker-selenium I think the easiest way to support armv7 would be a different base image without selenium, though with a reduced number of working providers. You could try starting from that. |
@manatlan Try replacing the first line in Dockerfile Lines 1 to 5 in 0d8e4ff
with FROM seleniarm/node-chromium:4.18.1-20240326 Then run docker compose up --build on your arm device.
It's an older selenium docker image with armv7 support. |
I tried ... but got this problem
it can't build cffi ;-( |
@manatlan Try adding this
At line 40 of Dockerfile Lines 36 to 43 in 0d8e4ff
This should fix the missing ffi.h file dependency |
There's a new update, hlohaus added a slim Dockerfile without selenium dependency. You should try that docker image too, I think it should work.
|
@foxfire52 ... I'm trying .... with "docker compose" (and not "docker-compose") ... |
perhaps it's possible to build it via a github action |
It takes more than 5h... And crash my RPI 3b+, without results ;-( |
@manatlan It is possible but current github action arm build failed @hlohaus As fix we can remove |
@manatlan Thanks to hlohaus the armv7 image is now available on docker hub. You can test it with: docker run \
-p 1337:1337 \
-v ${PWD}/har_and_cookies:/app/har_and_cookies \
-v ${PWD}/generated_images:/app/generated_images \
hlohaus789/g4f:latest-slim \
rm -r -f /app/g4f/ \
&& pip install -U g4f[slim] \
&& python -m g4f.cli api --gui --debug |
Good. I modified the Dockerfile to bypass any missing pip requirements. |
still trouble
|
but got better results with :
but no ;-(
I cross posted here : deedy5/primp#50 |
great Job @manatlan @hlohaus @foxfire52 |
I confirm !!!! it's working now ! primp 0.8.1 fixed the bug .... and I can run it thru :
|
but at runtime, there is an error :-)
|
tested with older version (0.3.6.3 & 0.3.7.1) ... but got a lot of : g4f.errors.RateLimitError: CaptchaChallenge: Use other cookies or/and ip address seems too lite ;-) |
cffi and pillow python modules are still missing, I've opened a Pull request to address that. Also the Docker image name has changed. It should be |
@manatlan Hey man, your messages are actually from Bing. Bing Chat is no more. It's now Copilot. And guess what, you don't even need an account to use Copilot! But here's the catch, you can't upload or generate images without one.
|
Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
Providing a docker/image for "linux/arm/v7" (raspberry pi) ... could be marvelous !
Describe alternatives you've considered
I tried a docker-compose of the github repo, with no luck (compilation trouble)
But I'm really not an expert ... perhaps an expert could help ?
Additional context
it could be marvelous to have a docker running on a simple raspberry pi !
The text was updated successfully, but these errors were encountered: