It is practical to include a Docker file so that a prepared solver can be deployed easily. Here we add a docker file and auto deployment. This required changing the host address from 127.0.0.1 to 0.0.0.0 (i.e. the bind-address). I am no networking expert, but I vaguely understand what is happening here.
Credit goes to @poolpitako for discovering the bind-address change!
Test Plan
run the docker image (you may have to build it)
docker build . -t test-solver-image
docker run -p 8000:8000 test-solver-image
It is practical to include a Docker file so that a prepared solver can be deployed easily. Here we add a docker file and auto deployment. This required changing the host address from
127.0.0.1
to0.0.0.0
(i.e. the bind-address). I am no networking expert, but I vaguely understand what is happening here.Credit goes to @poolpitako for discovering the bind-address change!
Test Plan
run the docker image (you may have to build it)
Send an order via curl
with 127.0.0.1
Or with 0.0.0.0
This also still works when running
To test container to container compatibility run the following:
Place an order on gnosis chain barn and watch the magic happen!