Skip to content

Commit 346787e

Browse files
committed
feat(runner): install nodejs
1 parent 8f33cab commit 346787e

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

runner/Dockerfile

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1-
FROM ghcr.io/actions/actions-runner:latest
1+
FROM ghcr.io/sergelogvinov/github-actions-runner:2.321.0
2+
# FROM ghcr.io/actions/actions-runner:latest
23

34
USER root
45

6+
# Install nodejs, otherwise actions/checkout@v4 will fail.
7+
RUN apt-get -qqy update && \
8+
apt-get -qqy install build-essential && \
9+
export NODEJS_VERSION=${NODEJS_VERSION:-22.x} && \
10+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
11+
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
12+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODEJS_VERSION nodistro main" \
13+
> /etc/apt/sources.list.d/nodesource.list && \
14+
apt-get -qqy update && apt-get -qqy install nodejs && \
15+
apt-get -qqy --purge remove build-essential && \
16+
apt-get -qqy --purge autoremove && \
17+
apt-get clean && \
18+
rm -rf /var/lib/apt/lists/* && \
19+
(npm config set -g spin=false || :) && \
20+
npm config set -g progress=false
21+
522
# Custom chart executes builds on /builds: https://github.com/sergelogvinov/helm-charts/blob/main/charts/github-actions-runner/templates/autoscalingrunnerset.yaml#L154
6-
RUN mkdir -p /builds && chown runner:runner /builds
23+
# RUN mkdir -p /builds && chown runner:runner /builds
724

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

0 commit comments

Comments
 (0)