From 690b3ca488efdcbbd65c5bbc8c3d984043344dfd Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Mon, 6 May 2024 20:50:02 +0300 Subject: [PATCH 1/9] Update docker.yml --- .github/workflows/docker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2503d78bf..056b34039 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,6 +5,8 @@ on: workflows: [Versioning] types: - completed + push: + branches: [ docker_test ] env: GB_REGISTRY: ghcr.io From 7ca5155cef8833495a233b32fdf088a6f23e360b Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Mon, 6 May 2024 20:50:46 +0300 Subject: [PATCH 2/9] Update docker.yml --- .github/workflows/docker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 056b34039..ce0850c1e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,7 +14,6 @@ env: jobs: build: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 From 58b92929a8321c83d725d4a2aeb9f8c0aebb0479 Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Mon, 6 May 2024 20:51:47 +0300 Subject: [PATCH 3/9] Update Dockerfile --- docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 74a05d5fc..c70a3665f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,4 +14,6 @@ RUN python3 -m pip install --no-cache-dir -r requirements.txt ARG CONF_FOLDER=$LICHESS_DIR/config +RUN chmod +x docker/copy_files.sh + CMD docker/copy_files.sh && python3 lichess-bot.py ${OPTIONS} --disable_auto_logging From 9feacd1f60ad4a9d3a782bc2e32df25ea6c641a3 Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Wed, 8 May 2024 14:37:51 +0300 Subject: [PATCH 4/9] Update copy_files.sh --- docker/copy_files.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/copy_files.sh b/docker/copy_files.sh index 3e9b08f83..2b2213fa8 100644 --- a/docker/copy_files.sh +++ b/docker/copy_files.sh @@ -1,11 +1,11 @@ #!/bin/sh -ln -s /lichess-bot/config/config.yml config.yml +ln -s /lichess-bot/config/config.yml lichess-bot/config.yml -if [ -f /lichess-bot/config/homemade.py ]; then - ln -sf /lichess-bot/config/homemade.py homemade.py +if [ -e /lichess-bot/config/homemade.py ]; then + ln -sf /lichess-bot/config/homemade.py lichess-bot/homemade.py fi -if [ -f /lichess-bot/config/extra_game_handlers.py ]; then - ln -sf /lichess-bot/config/extra_game_handlers.py extra_game_handlers.py +if [ -e /lichess-bot/config/extra_game_handlers.py ]; then + ln -sf /lichess-bot/config/extra_game_handlers.py lichess-bot/extra_game_handlers.py fi From bb90e24d14fff85bbacc61e6a7803240835b3c24 Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Wed, 8 May 2024 14:40:42 +0300 Subject: [PATCH 5/9] Update copy_files.sh --- docker/copy_files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/copy_files.sh b/docker/copy_files.sh index 2b2213fa8..bf5b493fd 100644 --- a/docker/copy_files.sh +++ b/docker/copy_files.sh @@ -1,11 +1,11 @@ #!/bin/sh -ln -s /lichess-bot/config/config.yml lichess-bot/config.yml +ln -s /lichess-bot/config/config.yml lichess-bot/ if [ -e /lichess-bot/config/homemade.py ]; then - ln -sf /lichess-bot/config/homemade.py lichess-bot/homemade.py + ln -sf /lichess-bot/config/homemade.py lichess-bot/ fi if [ -e /lichess-bot/config/extra_game_handlers.py ]; then - ln -sf /lichess-bot/config/extra_game_handlers.py lichess-bot/extra_game_handlers.py + ln -sf /lichess-bot/config/extra_game_handlers.py lichess-bot/ fi From 0a8d8df801767cdbac73c8e2a7347dba63c7e2fd Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Wed, 8 May 2024 14:46:12 +0300 Subject: [PATCH 6/9] Update copy_files.sh --- docker/copy_files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/copy_files.sh b/docker/copy_files.sh index bf5b493fd..57a55afd5 100644 --- a/docker/copy_files.sh +++ b/docker/copy_files.sh @@ -1,11 +1,11 @@ #!/bin/sh -ln -s /lichess-bot/config/config.yml lichess-bot/ +ln -s /lichess-bot/config/config.yml /lichess-bot/ if [ -e /lichess-bot/config/homemade.py ]; then - ln -sf /lichess-bot/config/homemade.py lichess-bot/ + ln -sf /lichess-bot/config/homemade.py /lichess-bot/ fi if [ -e /lichess-bot/config/extra_game_handlers.py ]; then - ln -sf /lichess-bot/config/extra_game_handlers.py lichess-bot/ + ln -sf /lichess-bot/config/extra_game_handlers.py /lichess-bot/ fi From 388427b05126bbbc17b8e4848f3f0c4b4326ac3b Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Wed, 8 May 2024 15:05:22 +0300 Subject: [PATCH 7/9] Update docker.yml --- .github/workflows/docker.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ce0850c1e..2503d78bf 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,8 +5,6 @@ on: workflows: [Versioning] types: - completed - push: - branches: [ docker_test ] env: GB_REGISTRY: ghcr.io @@ -14,6 +12,7 @@ env: jobs: build: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 From fc59822085cce7a07d489bb9daf345eff1cfbd17 Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Wed, 8 May 2024 16:46:22 +0300 Subject: [PATCH 8/9] Update How-to-use-the-Docker-image.md --- wiki/How-to-use-the-Docker-image.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wiki/How-to-use-the-Docker-image.md b/wiki/How-to-use-the-Docker-image.md index f4ace986a..6eb60c0f3 100644 --- a/wiki/How-to-use-the-Docker-image.md +++ b/wiki/How-to-use-the-Docker-image.md @@ -22,6 +22,8 @@ You can also find documentation [here](https://github.com/lichess-bot-devs/liche Once your configuration files are ready, let's say in `/home/me/myEngine` folder, run the following command: ```docker run -d -v /home/me/myEngine:/lichess-bot/config --name myBot lichessbotdevs/lichess-bot``` +**NOTE**: Prefer using absolute paths over relative paths, as relative ones may cause problems. + That's all! ### Warning: From d57fac2a62b2576b0aec43126fdbe97d86b74656 Mon Sep 17 00:00:00 2001 From: Ioannis Pantidis <40605232+AttackingOrDefending@users.noreply.github.com> Date: Thu, 9 May 2024 10:55:08 +0300 Subject: [PATCH 9/9] Update Dockerfile --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c70a3665f..df0362e6e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ ARG VARIANT FROM python:3$VARIANT -MAINTAINER Jean-Marc Astesana +MAINTAINER Lichess Bot Devs ENV LICHESS_BOT_DOCKER="true" ENV PYTHONDONTWRITEBYTECODE=1