-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontainer.Dockerfile
More file actions
98 lines (85 loc) · 1.83 KB
/
container.Dockerfile
File metadata and controls
98 lines (85 loc) · 1.83 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
92
93
94
95
96
97
98
FROM quay.io/fedora/fedora-minimal:43 as ci
LABEL org.opencontainers.image.source="https://github.com/IBM/CommonLowLevelTracingKit"
LABEL org.opencontainers.image.description="CI container for CommonLowLevelTracingKit"
LABEL org.opencontainers.image.licenses="BSD-2-Clause-Patent"
RUN echo "build base-layers"
USER root
RUN dnf -y update && \
dnf -y upgrade
RUN dnf -y install \
git \
git-lfs \
cmake \
make \
gcc \
g++ \
ccache \
clang-tools-extra \
valgrind \
lcov \
gcovr \
libasan \
rpmdevtools \
cppcheck \
jq \
file \
rsync \
gettext \
wget \
unzip \
openssl \
python3 \
python3-pip \
zlib-ng-compat-devel \
cli11-devel \
rapidjson-devel \
libffi-devel \
libarchive-devel \
boost-devel \
java-21-openjdk-devel
# clang-format specific version may need to be installed via LLVM repo or built from source.
# Assuming clang-tools-extra provides clang-format; adjust if specific version is needed.
RUN update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format 100
RUN pip3 install \
numpy \
pandas \
pytz
RUN \
echo "[safe]" >> ~/.gitconfig &&\
echo " directory = *" >> ~/.gitconfig &&\
echo ""
FROM ci as kernel
RUN echo "now build kernel-layers"
RUN dnf -y install \
curl \
rpm-build \
elfutils \
clang \
lld \
llvm \
elfutils-libelf-devel \
ccache \
@development-tools \
flex \
bison \
bc \
busybox \
strace \
cpio \
qemu-system-x86 \
ncurses-devel \
openssl-devel \
openssl-devel-engine \
kmod
FROM kernel as dev
RUN echo "now build dev-layers"
RUN dnf -y install \
ninja-build \
gdb \
lldb \
perf \
npm \
bash-completion
RUN pip3 install \
scipy \
matplotlib