-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize list of packages installed on runners
Review and clean up the list of packages installed during runner image build: remove duplicates, use common list between main and s390x Dockerfiles. * remove linux-image-generic * replace python3 with python3-minimal. * install LLVM with an official automatic script. * set UBUNTU_VERSION to noble by default This addresses recent build failures: * https://github.com/kernel-patches/runner/actions/runs/13058686735 * https://github.com/kernel-patches/runner/actions/runs/13037837932 Signed-off-by: Ihor Solodrai <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
# hadolint ignore=DL3007 | ||
ARG UBUNTU_VERSION=focal | ||
ARG UBUNTU_VERSION=noble | ||
FROM myoung34/github-runner:ubuntu-${UBUNTU_VERSION} | ||
# Redefining UBUNTU_VERSION without a value inherits the global default | ||
ARG UBUNTU_VERSION | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y cmake flex bison build-essential libssl-dev ncurses-dev xz-utils bc rsync libguestfs-tools qemu-kvm qemu-utils linux-image-generic zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils \ | ||
&& apt-get install -y g++ libelf-dev \ | ||
&& apt-get install -y iproute2 iputils-ping \ | ||
&& apt-get install -y cpu-checker qemu-kvm qemu-utils qemu-system-x86 qemu-system-s390x qemu-system-arm qemu-guest-agent ethtool keyutils iptables gawk \ | ||
&& echo "deb https://apt.llvm.org/${UBUNTU_VERSION}/ llvm-toolchain-${UBUNTU_VERSION} main" > /etc/apt/sources.list.d/llvm.list \ | ||
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \ | ||
&& apt-get update \ | ||
&& apt-get install -y clang lld llvm | ||
RUN apt-get update -y && apt-get install -y \ | ||
bc bison build-essential cmake cpu-checker curl dumb-init elfutils ethtool flex g++ gawk git \ | ||
iproute2 iptables iputils-ping jq keyutils libguestfs-tools python3-minimal python3-docutils \ | ||
rsync sudo tree wget xz-utils zstd | ||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
binutils-dev libcap-dev libdw-dev libelf-dev libssl-dev ncurses-dev | ||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
qemu-guest-agent qemu-kvm qemu-system-arm qemu-system-s390x qemu-system-x86 qemu-utils | ||
|
||
# Install LLVM with automatic script (https://apt.llvm.org) | ||
RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" | ||
|
||
RUN apt-get clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters