ofaurax / arvin2

A script to search in HMAP (https://hmap.fr/) set of music scores. Basically, a PHP script to search in a CSV.
GNU Affero General Public License v3.0
1 stars 1 forks source link

5 add dockerfile to easy deploy website #13

Closed ofaurax closed 2 months ago

ofaurax commented 2 months ago

Fix #5

kimicol commented 2 months ago

I get the following error when running docker image :

$ docker run --name arvin2 --network host -it arvin2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.65.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.65.3. Set the 'ServerName' directive globally to suppress this message

The webpage is not available at http://localhost:1912. I quickly searched on internet a way to fix it but nothing worked.

Running on :

kimicol commented 2 months ago

Complete output of docker running :

$ docker run --rm --name arvin2 --network host -it arvin2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.65.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.65.3. Set the 'ServerName' directive globally to suppress this message
[Sat Apr 27 14:32:25.284401 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/7.4.33 configured -- resuming normal operations
[Sat Apr 27 14:32:25.284441 2024] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

Output in firefox : image

ofaurax commented 2 months ago

Did you try to access http://192.168.65.3:1912 ?

ofaurax commented 2 months ago

Do you try to access it from windows or Ubuntu? It should be accessible from the host OS running docker

kimicol commented 2 months ago

Did you try to access http://192.168.65.3:1912 ?

Yes, didn't work either.

Do you try to access it from windows or Ubuntu? It should be accessible from the host OS running docker

It works on my Debian computer, I've just tried it.

The problem should come from my windows laptop which I tried first. Maybe there is an error with WSL. I will search deeper on my configuration but it shouldn't imply to modify the Dockerfile. However maybe the commands given in README.md shall be adapted.