quran.com-images icon indicating copy to clipboard operation
quran.com-images copied to clipboard

Edit Dockerfile from debian to buster

Open SofiyanIfren opened this issue 10 months ago • 4 comments

Made two moidifications to make it working, as discussed in the following issue : https://github.com/quran/quran.com-images/issues/49

  1. From Debian Jessie to Buster, because the binary-amd64 was not available inside the Jessie image, here it is for Buster : /debian-security/dists/buster/updates/main/binary-amd64
  2. Removed the '\r' character which was causing this bug : /usr/bin/env: 'perl\r': No such file or directory (the '\r' was not removed from the perl files)

The image is now working fine al hamdouliLlah

SofiyanIfren avatar Apr 06 '24 06:04 SofiyanIfren

jazakumAllah khairan for the PR - I merged #50, which had some of these changes along with bumping mysql. it's working for me now on macOS. where did you find this \r fix is needed since things are ok for me without it?

ahmedre avatar Apr 09 '24 12:04 ahmedre

Assalamou aleikoum sorry for the response time, I didn't receive the notifications...

  • I d'idn't try slim images for buster, I can do it if you want
  • For the \r char, it may be because I'm a windows user, it is common to have similar issues of misunderstood characters between the apple and the window ; I don't think modifying the file will be appropriate, as if I do it, it will be done from a different OS

May Allah agree our deeds

SofiyanIfren avatar May 08 '24 20:05 SofiyanIfren

wa3laikum alsalam, no problem - i think the main branch should be working now without this patch, please give it a shot in sha' Allah. jazakumAllah khairan

ahmedre avatar May 08 '24 20:05 ahmedre

Just tried, the build is OK but I have a new error on the main branch, maybe the doc. is not updated :

λ docker-compose run gen /app/script/generate.pl --width 1300 --output ./output/ --pages 50 [+] Running 1/0

  • Container qurancom-images-mysql-1 Created 0.0s [+] Running 1/1
  • Container qurancom-images-mysql-1 Started 1.0s DBI connect('database=nextgen;host=mysql;port=3306','nextgen',...) failed: Can't connect to MySQL server on 'mysql' (115) at /app/script/../lib/Quran/DB.pm line 20. Died at /app/script/../lib/Quran/DB.pm line 20.

Shall I open a new issue ?

SofiyanIfren avatar May 08 '24 21:05 SofiyanIfren