Skip to content

Commit

Permalink
feat(runner): install nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
keskiju committed Dec 3, 2024
1 parent 8f33cab commit 346787e
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
FROM ghcr.io/actions/actions-runner:latest
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:-22.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
# 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
Expand Down

0 comments on commit 346787e

Please sign in to comment.