Allow the host for the backchannel to be configurable
Currently the host for the SocketControlInterface
in src/control.py
is hardcoded to be 127.0.0.1
. This breaks the backchannel communication in a setup where engine and engine-core aren't on the same host (so for example any setup where engine runs in a docker-container).
At least when engine runs inside of docker, it should be possible to set this to another host (in the docker-case 0.0.0.0
) and let docker handle the ports exposure (which seems to be prepared in the run.sh with AURA_ENGINE_CONTROL_CHANNEL
).
In the current setup engine-core will get this error when trying to connect to the backchannel:
curl: (7) Failed to connect to engine port 1337: Connection refused
On a sidenote, this error only appears in stdout/stderr and doesn't get written to the log.
I confirmed locally that hardcoding the host to 0.0.0.0 in a docker-setup solves the problem, but I guess this should be configurable in the engine.ini.