Torom / BotLi

Lichess Bot
GNU Affero General Public License v3.0
46 stars 82 forks source link

Dockerfile error #84

Closed FatFritz2 closed 1 year ago

FatFritz2 commented 1 year ago

Hi Torom When I was trying to rebuild the Dockerfile to a cloud hosting, I installed all the requirements but it occurs like

 File "/workspaces/OldBotLi/user_interface.py", line 213, in <module>
    ui = UserInterface()
  File "/workspaces/OldBotLi/user_interface.py", line 24, in __init__
    self.config = load_config()
  File "/workspaces/OldBotLi/config.py", line 53, in load_config
    raise Exception(
Exception: The engine "./engines/stockfish" doesnt have execute (x) permission. Try: chmod +x ./engines/stockfish

Also it is using ubuntu of course (I am using Github Codespace to do this)

Torom commented 1 year ago

I added an up-to-date Dockerfile to the main branch in fb083c8.

Torom commented 1 year ago

Have you tried the new Dockerfile? And if you want me to help, please post the Dockerfile you used.

FatFritz2 commented 1 year ago

Here is my Dockerfile:


FROM ubuntu:jammy
COPY . .

RUN apt-get update && apt-get upgrade -y && apt-get install -y wget unzip python3 python3-pip

RUN mv config.yml.default config.yml
RUN wget https://abrok.eu/stockfish/latest/linux/stockfish_x64_bmi2.zip -O stockfish.zip
RUN unzip stockfish.zip && rm stockfish.zip
RUN mv stockfish_* engines/stockfish && chmod +x ./engines/stockfish
RUN python3 -m pip install --no-cache-dir -r requirements.txt

# Add the "--matchmaking" flag to start the matchmaking mode.
CMD python3 user_interface.py --non_interactive

Is there anything wrong with it ?

FatFritz2 commented 1 year ago

I guess github codespace doesn't compatible with BotLi so I'd just close this issue now