Open FatFritz2 opened 11 months ago
At which point of the process did you get stuck?
As commented in #2, you first need to generate a docker image that contains both Stockfish binaries and a clone of lichess-bot pointing at them. The content of docker-publish.yml
can serve as an example of how to do it using GH actions
you would need to first replicate what I do in docker-publish.yml but using Stockfish binaries to mix them with lichess-bot-devs/lichess-bot in an image.
Yeah i am stucking at that I mean i cant get the sf binary in the yml
You bot config file defines the path where the binary is expected to be found (in this case we're talking about the path inside of the docker container). i.e. lynx_bot-config.yml.
You need to make sure Stockfish binaries end up being copied there during the image build process. You do that in your Dockerfile
What I do in docker-publish.yml is downloading the right version of Lynx, and place it where my Dockerfile expects it.
If you're trying to build the image locally, you can just put it in the right directory locally and forget about that file
- You bot config file defines the path where the binary is expected to be found (in this case we're talking about the path inside of the docker container). i.e. lynx_bot-config.yml.
- You need to make sure Stockfish binaries end up being copied there during the image build process. You do that in your Dockerfile
- What I do in docker-publish.yml is downloading the right version of Lynx, and place it where my Dockerfile expects it. If you're trying to build the image locally, you can just put it in the right directory locally and forget about that file
I dont do it locally, I wanna put it up to the cloud
I'm talking about where to build the image, not about where to run it.
But the procedure would be the same if you wanted to build it using GH actions as I do: make sure that the right stockfish binaries are placed in the right locations where the dockerfile expects them, and in the dockerfile make sure you copy them wherever your bot config file expects it.
It seems like your Dockerfile has some problems ? NB: I used your default Lynx engine
I'm going to need some more context about that screenshot to be able to help you further, but this does not look like an issue with my Dockerfile 😃
Can you help me to get Stockfish in this repo ? I have already looked at docker-publish.yml and docker-compose.yml to merge lichess-bot here but I am stucking Thanks