Skip to content

Commit

Permalink
feat(runner): pull taito-cli on start
Browse files Browse the repository at this point in the history
  • Loading branch information
keskiju committed Dec 4, 2024
1 parent 78a4129 commit 43d163d
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
FROM ghcr.io/sergelogvinov/github-actions-runner:2.321.0
# FROM ghcr.io/actions/actions-runner:latest

USER root

# Install nodejs, otherwise actions/checkout@v4 will fail.
RUN apt-get -qqy update && \
apt-get -qqy install build-essential && \
export NODEJS_VERSION=${NODEJS_VERSION:-20.x} && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODEJS_VERSION nodistro main" \
> /etc/apt/sources.list.d/nodesource.list && \
apt-get -qqy update && apt-get -qqy install nodejs && \
apt-get -qqy --purge remove build-essential && \
apt-get -qqy --purge autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
(npm config set -g spin=false || :) && \
npm config set -g progress=false

# Custom chart executes builds on /builds: https://github.com/sergelogvinov/helm-charts/blob/main/charts/github-actions-runner/templates/autoscalingrunnerset.yaml#L154
# RUN mkdir -p /builds && chown runner:runner /builds

# Pull taito-cli:ci-gcp-dev on start
# RUN sed -i '/updateFile="update.finished"/a docker pull ghcr.io/taitounited/taito-cli:ci-gcp-dev' /home/runner/run-helper.sh.template

USER runner
ENV RUNNER_WAIT_FOR_DOCKER_IN_SECONDS 10
RUN sed -i '/updateFile="update.finished"/a docker pull taitounited/taito-cli:ci-gcp-dev' /home/runner/run-helper.sh.template

0 comments on commit 43d163d

Please sign in to comment.