Closed terroirman closed 1 year ago
Jerome,
This issue is related to how Docker handles the hosts file. Evergreen requires some manual entries into the /etc/hosts file for ejabberd, and the container attempts to set those up. Docker doesn't allow editing /etc/hosts (anymore) - so instead we have to pass the entries during the build. Like this:
docker build \ --add-host public.localhost:127.0.1.2 \ --add-host public:127.0.1.2 \ --add-host private.localhost:127.0.1.3 \ --add-host private:127.0.1.3 \ . --no-cache
But it sounds like you're using docker compose. Which isn't very well tested. A little reading on the matter, and I think we have a clause missing in our .env file:
extra_hosts:
Try adding that to .env
Ugh - This comment form mangled my lines. Let see if this comes through
extra_hosts:
- "public.localhost:127.0.1.2"
- "public:127.0.1.2"
- "private.localhost:127.0.1.3"
- "private:127.0.1.3"
Jerome,
I went ahead and pushed a change to the repo illustrating the .env change.
Jerome,
I went ahead and pushed a change to the repo illustrating the .env change.
Thanks a lot for the quick answer! I actually tried the extra_hosts section in docker-compose.yml but didn't realize it was for building (not at runtime).
Unless there is something I don't know, I don't think you can put the extra_hosts in the .env file. See merge request here that worked for me: https://github.com/mcoia/eg-docker/pull/19.
Side note: I had to disable docker buildx as it was reaching the maximum output log size (error was [output clipped, log limit 1MiB reached]
). Suggestion: reduce Ansible log level (at least in the non-dev folder).
Hi @bmagic007 ,
Trying to docker-compose up the
generic-dockerhub
folder and I'm getting this error "Jabber Exception: Could not open TCP socket to Jabber server: IO::Socket::INET: Bad hostname 'private.localhost'" (see details below).Any idea how to solve this issue ?
I haven't changed much to the project vars, just the following:
and
Detailled log: