vRAN tools container image stx-debian-dev

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

Test Plan: Successfully build image on Debian (PASSED)

Story: 2010138
Task: 45768

Signed-off-by: rferraz <RogerioOliveira.Ferraz@windriver.com>
Change-Id: I1405dfda9a788c0366f0c52aa59e526107144c88
This commit is contained in:
rferraz 2022-07-12 01:56:21 -03:00
parent 5965f21400
commit 6e4104c69c
4 changed files with 110 additions and 0 deletions

View File

@ -0,0 +1 @@
tools/base-images/stx-debian-dev

View File

@ -0,0 +1,104 @@
ARG BASE
FROM ${BASE}
# Install stx-dev repo (StarlingX-Debian CENGN repo)
COPY stx-dev.list /etc/apt/sources.list.d/stx-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 \
&& \
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 required packages
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/*
# 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-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/*

View File

@ -0,0 +1,3 @@
deb [trusted=yes check-valid-until=0] http://mirror.starlingx.cengn.ca/mirror/starlingx/master/debian/monolithic/latest_build/inputs/packages ./
deb [trusted=yes check-valid-until=0] http://mirror.starlingx.cengn.ca/mirror/starlingx/master/debian/monolithic/latest_build/outputs/std/packages ./
deb [trusted=yes check-valid-until=0] http://mirror.starlingx.cengn.ca/mirror/starlingx/master/debian/monolithic/latest_build/outputs/rt/packages ./

View File

@ -0,0 +1,2 @@
BUILDER=docker
LABEL=stx-debian-dev