-
Notifications
You must be signed in to change notification settings - Fork 1
/
Containerfile-numa
33 lines (33 loc) · 1.49 KB
/
Containerfile-numa
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
FROM quay.io/centos/centos:stream9
# RUN sed -i "s|enabled=1|enabled=0|g" /etc/yum.repos.d/centos.repo \
# && sed -i "s|enabled=1|enabled=0|g" /etc/yum.repos.d/centos-addons.repo
# RUN echo -e "\
# [9-stream]\n\
# name=Facebook Mirror - 9 BaseOS\n\
# baseurl=https://mirror.facebook.net/centos-stream/9-stream/BaseOS/ppc64le/os/\n\
# enabled=1\n\
# gpgcheck=0\
# " > /etc/yum.repos.d/centos-stream9.repo
# RUN echo -e "\
# [9-stream-app]\n\
# name=Facebook Mirror - 9 AppStream\n\
# baseurl=https://mirror.facebook.net/centos-stream/9-stream/AppStream/ppc64le/os/\n\
# enabled=1\n\
# gpgcheck=0\
# " > /etc/yum.repos.d/centos-stream9-app.repo
# RUN cat /etc/yum.repos.d/centos-stream9.repo
RUN dnf update -y
RUN dnf install -y numactl util-linux numactl-libs fio sysstat bpftrace perf
RUN [ "$(arch)" == "ppc64le" ] \
&& dnf install -y powerpc-utils powerpc-utils-core bcc-tools bcc bzip2 pcp-system-tools tar python3-bcc python3 python3-pip lsvpd psmisc \
|| echo "Not running on ppc64le, skip linking powerpc dependency"
RUN [ "$(arch)" == "ppc64le" ] \
&& python3 -m pip install -U prettytable \
|| echo "Not running on ppc64le, skip linking powerpc python dependency"
RUN [ "$(arch)" == "ppc64le" ] \
&& sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
&& sudo dnf -y install nmon \
|| echo "Not running on ppc64le, skip adding nmon"
ADD scripts/report-hugepages.sh /
ADD scripts/report-numa.sh /
ADD scripts/run-fio.sh /