Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/start/envlinux.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Debian based OS (Debian, Ubuntu, Linux Mint)
- zlib1g
- libssl3t64, libssl3, libssl1.1, libssl1.0.2 or libssl1.0.0
- libicu80, libicu79, ..., libicu66, libicu65, libicu63, libicu60, libicu57, libicu55, or libicu52
- libatomic1 (see [Node.js dependencies](#nodejs-dependencies))

Fedora based OS (Fedora, Red Hat Enterprise Linux, CentOS, Oracle Linux 7)

Expand All @@ -40,6 +41,7 @@ Fedora based OS (Fedora, Red Hat Enterprise Linux, CentOS, Oracle Linux 7)
- krb5-libs
- zlib
- libicu
- libatomic (see [Node.js dependencies](#nodejs-dependencies))

SUSE based OS (OpenSUSE, SUSE Enterprise)

Expand All @@ -48,5 +50,23 @@ SUSE based OS (OpenSUSE, SUSE Enterprise)
- krb5
- zlib
- libicu60_2
- libatomic1 (see [Node.js dependencies](#nodejs-dependencies))

## Node.js dependencies

The runner ships its own Node.js under `<runner_root>/externals/`, and workflows commonly install additional
Node.js versions into the tool cache with [actions/setup-node](https://github.com/actions/setup-node).

The official Node.js binaries link against `libatomic.so.1` starting with **Node.js 25**. If that library is
missing, Node.js exits before running anything:

```
node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
```

`installdependencies.sh` installs this library on a best-effort basis (`libatomic1` on Debian/SUSE based
distributions, `libatomic` on Fedora based ones). It is treated as best effort rather than a hard requirement
because the runner itself starts fine without it — only Node.js 25+ needs it — so a distribution that does not
package it still configures successfully, with a warning.

## [More .Net Core Prerequisites Information](https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x)
18 changes: 15 additions & 3 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG TARGETOS
ARG TARGETARCH
ARG RUNNER_VERSION
ARG RUNNER_CONTAINER_HOOKS_VERSION=0.7.0
ARG DOCKER_VERSION=29.10.0
ARG DOCKER_VERSION=29.10.1
ARG BUILDX_VERSION=0.39.1

RUN apt update -y && apt install curl unzip -y
Expand Down Expand Up @@ -43,9 +43,21 @@ ENV RUNNER_MANUALLY_TRAP_SIG=1
ENV ACTIONS_RUNNER_PRINT_LOG_TO_STDOUT=1
ENV ImageOS=ubuntu24

# 'gpg-agent' and 'software-properties-common' are needed for the 'add-apt-repository' command that follows
# 'gpg-agent' and 'software-properties-common' are needed for the 'add-apt-repository' command that follows.
#
# 'libatomic1' provides libatomic.so.1, which the official Node.js binaries link against starting with
# Node.js 25 (verified with `readelf -d bin/node`: absent in v24.x, present in v25.x and v26.x on both
# linux-x64 and linux-arm64). It is not part of the dotnet/runtime-deps base image, so a job that
# provisions Node with actions/setup-node fails at exec time with
# node: error while loading shared libraries: libatomic.so.1: cannot open shared object file
# See https://github.com/actions/runner/issues/4591.
#
# It is installed from Ubuntu 'main' (source package gcc-14) in the same apt transaction as the packages
# above, so it introduces no new repository or trust anchor, adds no executables to the image, and costs
# ~50 kB installed. Installing a compiler toolchain (build-essential/gcc) to obtain the same library would
# be a far larger attack surface and is deliberately avoided.
RUN apt update -y \
&& apt install -y --no-install-recommends sudo lsb-release gpg-agent software-properties-common curl jq unzip \
&& apt install -y --no-install-recommends sudo lsb-release gpg-agent software-properties-common curl jq unzip libatomic1 \
&& rm -rf /var/lib/apt/lists/*

# Configure git-core/ppa based on guidance here: https://git-scm.com/download/linux
Expand Down
2 changes: 1 addition & 1 deletion patches/last_processed_commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4812b901a6bfdbca2366376b798a6c1d28c4371f
ff017d183d7d82cef4a14b47d293e61c0b488775
2 changes: 1 addition & 1 deletion patches/runner-main-sdk8-arm.patch
Original file line number Diff line number Diff line change
Expand Up @@ -365,4 +365,4 @@ index 67f951ec..70cfe5c2 100644
+ "version": "9.0.318"
}
}
# From upstream commit: 4812b901a6bfdbca2366376b798a6c1d28c4371f
# From upstream commit: ff017d183d7d82cef4a14b47d293e61c0b488775
2 changes: 1 addition & 1 deletion patches/runner-main-sdk8-ppc64le.patch
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,4 @@ index 056a312e..52cb25ca 100644
<Exec Command="%22$(DesktopMSBuild)%22 Runner.Service/Windows/RunnerService.csproj /p:Configuration=$(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:OutputPath=%22$(MSBuildProjectDirectory)/../_layout/bin%22" ConsoleToMSBuild="true" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86' Or '$(PackageRuntime)' == 'win-arm64'" />
</Target>

# From upstream commit: 4812b901a6bfdbca2366376b798a6c1d28c4371f
# From upstream commit: ff017d183d7d82cef4a14b47d293e61c0b488775
2 changes: 1 addition & 1 deletion patches/runner-main-sdk8-s390x.patch
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,4 @@ index 056a312e..52cb25ca 100644
<Exec Command="%22$(DesktopMSBuild)%22 Runner.Service/Windows/RunnerService.csproj /p:Configuration=$(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime) /p:OutputPath=%22$(MSBuildProjectDirectory)/../_layout/bin%22" ConsoleToMSBuild="true" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86' Or '$(PackageRuntime)' == 'win-arm64'" />
</Target>

# From upstream commit: 4812b901a6bfdbca2366376b798a6c1d28c4371f
# From upstream commit: ff017d183d7d82cef4a14b47d293e61c0b488775
31 changes: 28 additions & 3 deletions src/Misc/layoutbin/installdependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ function print_errormessage()
echo "https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x"
}

function print_rhel6message()
function print_libatomic_warningmessage()
{
echo "Warning: couldn't install '$1'."
echo "The runner will still work, but Node.js 25 and newer won't start without libatomic.so.1,"
echo "so actions that provision Node (for example actions/setup-node) may fail with"
echo "'error while loading shared libraries: libatomic.so.1'."
echo "Please install '$1' manually using your distribution's package manager."
}

function print_rhel6message()
{
echo "We did our best effort to install dotnet core dependencies"
echo "However, there are some dependencies which require manual installation"
Expand Down Expand Up @@ -117,6 +126,13 @@ then
print_errormessage
exit 1
fi

# libatomic.so.1 is a runtime dependency of the official Node.js binaries starting with Node.js 25.
# The Node.js versions bundled with the runner (externals/node20, externals/node24) do not need it,
# but toolchain actions such as actions/setup-node install Node into the tool cache, where it fails
# to start without this library. See https://github.com/actions/runner/issues/4591.
# Installed best-effort: a distribution without the package must not block runner configuration.
$apt_get install -y libatomic1 || print_libatomic_warningmessage libatomic1
elif [ -e /etc/redhat-release ]
then
echo "The current OS is Fedora based"
Expand All @@ -137,7 +153,10 @@ then
echo "'dnf' failed with exit code '$?'"
print_errormessage
exit 1
fi
fi

# See the libatomic comment in the Debian branch above.
dnf install -y libatomic || print_libatomic_warningmessage libatomic
else
echo "Can not find 'dnf'"
print_errormessage
Expand All @@ -149,11 +168,14 @@ then
then
yum install -y lttng-ust openssl-libs krb5-libs zlib libicu
if [ $? -ne 0 ]
then
then
echo "'yum' failed with exit code '$?'"
print_errormessage
exit 1
fi

# See the libatomic comment in the Debian branch above.
yum install -y libatomic || print_libatomic_warningmessage libatomic
else
echo "Can not find 'yum'"
print_errormessage
Expand All @@ -178,6 +200,9 @@ then
print_errormessage
exit 1
fi

# See the libatomic comment in the Debian branch above.
zypper -n install libatomic1 || print_libatomic_warningmessage libatomic1
else
echo "Can not find 'zypper'"
print_errormessage
Expand Down
Loading