rferraz a8290e83f2 PCM tools on container image stx-debian-tools-dev
Processor Counter Monitor (PCM) tools are introduced on the
container stx-debian-tools-dev.

The container includes a selection of Dev tools for the vRAN tools
enablement with Intel hardware on Debian. It is a continuation of story
2009990, which introduced this feature on CentOS.

Test Plan: Successfully build image on Debian (PASSED)

Story: 2010138
Task: 46168

Depends-On: https://review.opendev.org/c/starlingx/tools/+/856842

Signed-off-by: rferraz <RogerioOliveira.Ferraz@windriver.com>
Change-Id: Ic5bc9ef0db71b76106b0a38400aa4be18fd1b893
2022-09-09 17:39:49 +00:00

135 lines
3.5 KiB
Docker

ARG BASE
FROM ${BASE}
# Install stx-tools-dev repo (StarlingX-Debian CENGN repo)
COPY stx-tools-dev.list /etc/apt/sources.list.d/stx-tools-dev.list.disabled
#
# repos:
# /etc/apt/sources.list.d/
# debian.list.disabled - vanilla debian repo
# stx-x.list.disabled - starlingx binary & build repos
#
# To enable a repo list:
# cp /etc/apt/sources.list.d/$repo_list.disabled \
# /etc/apt/sources.list.d/$repo_list
#
# To disable a repo list:
# rm -f /etc/apt/sources.list.d/$repo_list
#
# Upgrade base packages to versions in managed repos
RUN set -ex && \
cp -f /etc/apt/sources.list.d/stx.list.disabled /etc/apt/sources.list.d/stx.list && \
apt-get update -y && \
apt-get upgrade -y && \
rm -f /etc/apt/sources.list.d/stx.list && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install packages provided only by debian.
RUN set -ex && \
cp -f /etc/apt/sources.list.d/debian.list.disabled /etc/apt/sources.list.d/debian.list && \
cp -f /etc/apt/sources.list.d/stx.list.disabled /etc/apt/sources.list.d/stx.list && \
apt-get update -y && \
apt-get install -y \
git \
git-review \
unzip \
autogen \
autoconf-archive \
linux-perf-5.10 \
libcap-dev \
uuid-dev \
ncurses-dev \
dwarves \
cmake \
libhwloc-dev \
libjson-c-dev \
doxygen \
sphinx-doc \
acpica-tools \
trace-cmd \
&& \
rm -f /etc/apt/sources.list.d/debian.list && \
rm -f /etc/apt/sources.list.d/stx.list && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Enable stx repo only. Packages installs below this point will use
# only the managed locally-built & 3rd-party repos.
RUN set -ex && \
cp /etc/apt/sources.list.d/stx.list.disabled /etc/apt/sources.list.d/stx.list
# Install dev tools package dependencies
RUN set -ex && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y \
sudo \
bash \
python3-yaml \
curl \
wget \
make \
automake \
bc \
bison \
isomd5sum \
gettext \
mkisofs \
gcc \
g++ \
rsync \
vim \
linux-headers-5.10.0-6 \
fakeroot \
flex \
libelf-dev \
libssl-dev \
xz-utils \
sphinx-common \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install dev tools
RUN set -ex && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y \
net-tools \
iproute2 \
ethtool \
tcpdump \
linux-cpupower \
pciutils \
pcm \
sysvinit-utils \
dmidecode \
python-is-python3 \
python3-pip \
&& \
python -m pip install \
intelhex \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Enable StarlingX-Debian CENGN repo
# Packages installs below this point will use DEB packages on CENGN repo.
RUN set -ex && \
cp -f /etc/apt/sources.list.d/stx-tools-dev.list.disabled /etc/apt/sources.list.d/stx.list && \
apt-get update && \
apt-get clean && \
rm -rf \
/var/lib/apt/lists/* \
/var/log/* \
/var/tmp/* \
/tmp/*
# Enable upstream Debian repo so users may install other dev tools if needed.
# Packages installs below this point might differ from those on StarlingX.
RUN set -ex && \
cp /etc/apt/sources.list.d/debian.list.disabled /etc/apt/sources.list.d/debian.list