Skip to content
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

Docker image for even easier local deployment #23

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ihyoudou
Copy link

@ihyoudou ihyoudou commented Nov 27, 2023

I thought it would be cool to add a very quick and simple method to deploy, so anyone could have their own, local version of frogfind running on their computer or even SBC like Raspberry Pi.

The PR also include Github Action workflow to automatically build multiarch Docker image and push it to Github Registry.

I know that this project is very simple to install as-is, as all you need to have is a working web server with composer, but I think it still might be useful for someone.

@ihyoudou ihyoudou marked this pull request as ready for review November 27, 2023 17:42
@popey
Copy link

popey commented Sep 5, 2024

Thanks for providing this additional option @ihyoudou !

I built and tested the docker image on my server, and it's running well. I'll leave it up for a while in case anyone else wants to poke at it, to make sure it behaves as expected.

Screenshot from 2024-09-05 17-34-41

I didn't test the actions, but it all looks sensible!

@danielschenk
Copy link

I pulled the image from the author's fork, seems to work great. I'm running it on an Odroid N2+. Would be a cool addition to the project, until then I'll keep running the PR build :)

@danielschenk
Copy link

Although I'm getting a lot of these on Wikipedia. Not sure if it is related to running in Docker, though. Also some images fail.
image

@danielschenk
Copy link

The broken images I get seem to be caused by Wikipedia itself rejecting the User-Agent, so in this case not related to Docker. Logging (I redacted my public host/IP as I don't want to make it findable here):

"GET /image.php?i=http://upload.wikimedia.org/wikipedia/commons/thumb/d/da/La_rendici%C3%B3n_de_Juliers.jpg/220px-La_rendici%C3%B3n_de_Juliers.jpg HTTP/1.1" 200 419 "http://xxx-redacted/read.php?a=http://en.wikipedia.org/wiki/J%C3%BClich" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0" "x.x.x.x" 0.000 0.001 . -
NOTICE: PHP message: PHP Warning:  imagecreatefromjpeg(http://upload.wikimedia.org/wikipedia/commons/thumb/d/da/La_rendición_de_Juliers.jpg/220px-La_rendición_de_Juliers.jpg): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden. Please comply with the User-Agent policy: https://meta.wikimedia.org/wiki/User-Agent_policy
 in /var/www/html/image_compressed.php on line 22
NOTICE: PHP message: PHP Fatal error:  Uncaught TypeError: imagesx(): Argument #1 ($image) must be of type GdImage, bool given in /var/www/html/image_compressed.php:30
Stack trace:
#0 /var/www/html/image_compressed.php(30): imagesx()
#1 {main}
  thrown in /var/www/html/image_compressed.php on line 30
2025/01/16 13:47:14 [error] 13#13: *339 FastCGI sent in stderr: "PHP message: PHP Warning:  imagecreatefromjpeg(http://upload.wikimedia.org/wikipedia/commons/thumb/d/da/La_rendición_de_Juliers.jpg/220px-La_rendición_de_Juliers.jpg): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden. Please comply with the User-Agent policy: https://meta.wikimedia.org/wiki/User-Agent_policy
 in /var/www/html/image_compressed.php on line 22; PHP message: PHP Fatal error:  Uncaught TypeError: imagesx(): Argument #1 ($image) must be of type GdImage, bool given in /var/www/html/image_compressed.php:30

@ihyoudou
Copy link
Author

Thanks for testing and troubleshooting! Unfortunately, the frogfind repository was (and still is) pretty out-of-date compared to frogfind.com, where most bugs were already fixed :/
related issue: #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants