From 8417b9e5d78149cb3ced51506a8e33e2a30625a0 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 3 May 2025 22:25:17 +0100 Subject: [PATCH 1/4] Update Dockerfile to use entrypoint.sh instead of start.sh --- .github/runner/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/runner/Dockerfile b/.github/runner/Dockerfile index fecddb5..efcba95 100644 --- a/.github/runner/Dockerfile +++ b/.github/runner/Dockerfile @@ -18,13 +18,13 @@ RUN cd /home/docker && mkdir actions-runner && cd actions-runner \ RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh -COPY start.sh start.sh +COPY entrypoint.sh entrypoint.sh # make the script executable -RUN chmod +x start.sh +RUN chmod +x entrypoint.sh # since the config and run script for actions are not allowed to be run by root, # set the user to "docker" so all subsequent commands are run as the docker user USER docker -ENTRYPOINT ["./start.sh"] \ No newline at end of file +ENTRYPOINT ["./entrypoint.sh"] \ No newline at end of file From dbb95c9b1a55e396f608f8730364e8560e504ff3 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 3 May 2025 22:25:31 +0100 Subject: [PATCH 2/4] renamed start to entrypoint --- .github/runner/{start.sh => entrypoint.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/runner/{start.sh => entrypoint.sh} (100%) diff --git a/.github/runner/start.sh b/.github/runner/entrypoint.sh similarity index 100% rename from .github/runner/start.sh rename to .github/runner/entrypoint.sh From 08a4871907d01692b8e14da1ea6fd66c47fa663b Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 3 May 2025 22:28:15 +0100 Subject: [PATCH 3/4] Comment out container_name in docker-compose.yml to allow for multiple runners --- .github/runner/docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/runner/docker-compose.yml b/.github/runner/docker-compose.yml index b533bfa..3ecee8e 100644 --- a/.github/runner/docker-compose.yml +++ b/.github/runner/docker-compose.yml @@ -6,7 +6,8 @@ services: context: . args: RUNNER_VERSION: 2.323.0 - container_name: github-runner + # container_name commented to allow for multiple runners + # container_name: github-runner env_file: - .env volumes: From 49c9e7f66dee952c43c26e2f986e580e4bb6fc51 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 3 May 2025 22:40:08 +0100 Subject: [PATCH 4/4] Add start.sh script to manage Docker container startup --- .github/runner/start.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/runner/start.sh diff --git a/.github/runner/start.sh b/.github/runner/start.sh new file mode 100644 index 0000000..891f4d4 --- /dev/null +++ b/.github/runner/start.sh @@ -0,0 +1,4 @@ + + +docker compose up -d --build +# docker compose up -d --build --scale github-runner=2