-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild_debuggers.el10.Dockerfile
More file actions
91 lines (72 loc) · 2.14 KB
/
build_debuggers.el10.Dockerfile
File metadata and controls
91 lines (72 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# syntax=docker/dockerfile:1.5
ARG debugger_base=rockylinux/rockylinux:10
FROM ${debugger_base}
SHELL [ "/usr/bin/bash", "-c" ]
# Make sure we're starting with an up-to-date image
RUN --mount=type=cache,target=/var/cache/dnf,sharing=locked \
--mount=type=cache,target=/var/cache/yum,sharing=locked \
dnf update -y || [ "$?" -eq 100 ] && \
rm -rf /tmp/*
ARG parallelism=3
ARG tools_prefix=/opt/debug_tools
RUN mkdir -p ${tools_prefix}
WORKDIR /tmp
#--------
# valgrind
RUN --mount=type=cache,target=/var/cache/dnf,sharing=locked \
--mount=type=cache,target=/var/cache/yum,sharing=locked \
dnf install -y valgrind && \
rm -rf /tmp/*
#--------
# gdb
RUN --mount=type=cache,target=/var/cache/dnf,sharing=locked \
--mount=type=cache,target=/var/cache/yum,sharing=locked \
dnf install -y \
gdb \
gdb-gdbserver \
&& \
rm -rf /tmp/*
#--------
# lldb
RUN --mount=type=cache,target=/var/cache/dnf,sharing=locked \
--mount=type=cache,target=/var/cache/yum,sharing=locked \
dnf install -y lldb && \
rm -rf /tmp/*
#--------
# rr
# rr is not currently available in EPEL for EL10.
# The package from github is built for EL8. Due to package dependencies, it can't be installed on EL10.
# It is also no longer available in Fedora, so grabbing a build from Fedora 40 isn't an option.
# No rr for now.
#--------
# xmlrunner
RUN --mount=type=cache,target=/var/cache/dnf,sharing=locked \
--mount=type=cache,target=/var/cache/yum,sharing=locked \
dnf install -y \
python3-pip \
python3-lxml \
&& \
rm -rf /tmp/*
RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked \
--mount=type=cache,target=/root/.cache/wheel,sharing=locked \
python3 -m pip install \
unittest-xml-reporting \
&& \
rm -rf /tmp/*
#--------
# utils
RUN --mount=type=cache,target=/var/cache/dnf,sharing=locked \
--mount=type=cache,target=/var/cache/yum,sharing=locked \
dnf install -y \
sudo \
nano \
vim-enhanced \
lsof \
which \
file \
iproute \
less \
psmisc \
procps-ng \
&& \
rm -rf /tmp/*