vRAN tools container image stx-debian-tools-dev
This is a new container image, which includes a selection of Dev tools on Debian, for the vRAN tools enablement with Intel hardware, except Quartzville, PCM and OPAE. It is a continuation of story 2009990, which introduced this feature on CentOS. Test Plan: Successfully build image on Debian (PASSED) Story: 2010138 Task: 46079 Signed-off-by: rferraz <RogerioOliveira.Ferraz@windriver.com> Change-Id: I22b1ea886bf44eef882c46aca2d0b566fa92f552
This commit is contained in:
parent
6e4104c69c
commit
6017ddbfc3
@ -1 +1,2 @@
|
||||
tools/base-images/stx-debian-dev
|
||||
tools/vran-tools/stx-debian-tools-dev
|
||||
|
133
tools/vran-tools/stx-debian-tools-dev/debian/docker/Dockerfile
Normal file
133
tools/vran-tools/stx-debian-tools-dev/debian/docker/Dockerfile
Normal file
@ -0,0 +1,133 @@
|
||||
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 \
|
||||
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
|
@ -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 ./
|
@ -0,0 +1,2 @@
|
||||
BUILDER=docker
|
||||
LABEL=stx-debian-tools-dev
|
Loading…
Reference in New Issue
Block a user