Triflez / Docker-HW

0 stars 0 forks source link

ISSUE: HTTPD:2.4.37-alpine #2

Open Triflez opened 4 years ago

Triflez commented 4 years ago

image

Basically httpd:2.4.37-alpine (37) does not work. As seen in the picture, it seems that it uses the environment variables from haproxy. According to google 37 has issues with mod_ssl, which seems to involve setting up env_var.

37 worked the first time I set it up as a stand alone image, but after I first set up haproxy image, 37 has not worked and has used haproxy env var even if 37 is the only image up.

Triflez commented 4 years ago

Docker inspect the container with httpd:2.4.37

"Config": { "Hostname": "3e6c5d5e5089", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HAPROXY_VERSION=1.8.14", "HAPROXY_URL=https://www.haproxy.org/download/1.8/src/haproxy-1.8.14.tar.gz", "HAPROXY_SHA256=b17e402578be85e58af7a3eac99b1f675953bea9f67af2e964cf8bdbd1bd3fdf" ], "Cmd": [ "haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg" ], "Image": "httpd:2.4.37-alpine", "Volumes": { "/usr/local/apache2/htdocs/index.html": {} }, "WorkingDir": "", "Entrypoint": [ "/docker-entrypoint.sh" ]

Triflez commented 4 years ago

Docker inspect httpd:2.4.38

"Config": { "Hostname": "8ed7b08705f6", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "80/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/apache2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HTTPD_PREFIX=/usr/local/apache2", "HTTPD_VERSION=2.4.38", "HTTPD_SHA256=7dc65857a994c98370dc4334b260101a7a04be60e6e74a5c57a6dee1bc8f394a", "HTTPD_PATCHES=", "APACHE_DIST_URLS=https://www.apache.org/dyn/closer.cgi?action=download&filename= \thttps://www-us.apache.org/dist/ \thttps://www.apache.org/dist/ \thttps://archive.apache.org/dist/" ], "Cmd": [ "httpd-foreground" ], "Image": "httpd:2.4.38-alpine", "Volumes": { "/usr/local/apache2/htdocs/index.html": {} }, "WorkingDir": "/usr/local/apache2", "Entrypoint": null,

Triflez commented 4 years ago

Tried this docker-compose container. Still adds haproxy to environment, and cant find httpd-foreground, seems like 37 just doesn't play with other containers and would need several files added to the image or just modified?, which seems excessive, when I could just use httpd:2.4.38 or newer instead.

apache-service-1: image: httpd:2.4.37-alpine volumes:

Triflez commented 4 years ago

Container with httpd:2.4.37 after the previous docker-composer change.

"Config": { "Hostname": "cbd685912fe1", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/apache2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HTTPD_PREFIX=/usr/local/apache2", "HTTPD_VERSION=2.4.37", "HTTPD_SHA256=7dc65857a994c98370dc4334b260101a7a04be60e6e74a5c57a6dee1bc8f394a", "HTTPD_PATCHES=", "APACHE_DIST_URLS=https://www.apache.org/dyn/closer.cgi?action=download&filename= \thttps://www-us.apache.org/dist/ \thttps://www.apache.org/dist/ \thttps://archive.apache.org/dist/", "HAPROXY_VERSION=1.8.14", "HAPROXY_URL=https://www.haproxy.org/download/1.8/src/haproxy-1.8.14.tar.gz", "HAPROXY_SHA256=b17e402578be85e58af7a3eac99b1f675953bea9f67af2e964cf8bdbd1bd3fdf" ], "Cmd": [ "httpd-foreground" ], "Image": "httpd:2.4.37-alpine", "Volumes": { "/usr/local/apache2/htdocs/index.html": {} }, "WorkingDir": "/usr/local/apache2", "Entrypoint": [],

Triflez commented 4 years ago

Interestingly I managed to break 2.4.38. Exactly the same thing as with 2.4.37 so the issue with 37 might have been something I did.

Idea 1: Reinstall docker

Triflez commented 4 years ago

So that worked.