lynx-chess / Lynx_BOT

Lichess bot. Runs Lynx chess engine (https://github.com/lynx-chess/Lynx)
https://lichess.org/@/Lynx_BOT
GNU Affero General Public License v3.0
3 stars 1 forks source link

Change from Lynx to Stockfish #4

Open FatFritz2 opened 11 months ago

FatFritz2 commented 11 months ago

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

eduherminio commented 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.

FatFritz2 commented 11 months ago

Yeah i am stucking at that I mean i cant get the sf binary in the yml

eduherminio commented 11 months ago
FatFritz2 commented 11 months ago
  • 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

eduherminio commented 11 months ago

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.

FatFritz2 commented 11 months ago

It seems like your Dockerfile has some problems ? NB: I used your default Lynx engine image

eduherminio commented 11 months ago

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 😃 image