2020-02-02 14:03:34 -06:00
|
|
|
|
{%- if CONFIGURED_ARCH == "armhf" %}
|
|
|
|
|
FROM multiarch/debian-debootstrap:armhf-buster
|
|
|
|
|
{%- elif CONFIGURED_ARCH == "arm64" %}
|
|
|
|
|
FROM multiarch/debian-debootstrap:arm64-buster
|
|
|
|
|
{%- else -%}
|
|
|
|
|
FROM debian:buster
|
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
|
|
MAINTAINER gulv@microsoft.com
|
|
|
|
|
|
|
|
|
|
COPY ["no-check-valid-until", "/etc/apt/apt.conf.d/"]
|
|
|
|
|
|
|
|
|
|
RUN echo "deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb [arch=amd64] http://debian-archive.trafficmanager.net/debian-security/ buster/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=amd64] http://debian-archive.trafficmanager.net/debian-security/ buster/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb [arch=amd64] http://debian-archive.trafficmanager.net/debian buster-backports main" >> /etc/apt/sources.list
|
|
|
|
|
|
|
|
|
|
{%- if CONFIGURED_ARCH == "armhf" %}
|
|
|
|
|
RUN echo "deb [arch=armhf] http://deb.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=armhf] http://deb.debian.org/debian buster main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb [arch=armhf] http://deb.debian.org/debian buster-updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=armhf] http://deb.debian.org/debian buster-updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb [arch=armhf] http://security.debian.org buster/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=armhf] http://security.debian.org buster/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo 'deb [arch=armhf] http://ftp.debian.org/debian buster-backports main' >> /etc/apt/sources.list
|
|
|
|
|
{%- elif CONFIGURED_ARCH == "arm64" %}
|
|
|
|
|
RUN echo "deb [arch=arm64] http://deb.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=arm64] http://deb.debian.org/debian buster main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb [arch=arm64] http://deb.debian.org/debian buster-updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=arm64] http://deb.debian.org/debian buster-updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb [arch=arm64] http://security.debian.org buster/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo "deb-src [arch=arm64] http://security.debian.org buster/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
|
echo 'deb [arch=arm64] http://ftp.debian.org/debian buster-backports main' >> /etc/apt/sources.list
|
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
|
|
## Make apt-get non-interactive
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
|
apt-utils \
|
|
|
|
|
default-jre-headless \
|
|
|
|
|
openssh-server \
|
|
|
|
|
curl \
|
|
|
|
|
wget \
|
|
|
|
|
unzip \
|
|
|
|
|
git \
|
|
|
|
|
build-essential \
|
|
|
|
|
libtool \
|
|
|
|
|
lintian \
|
|
|
|
|
sudo \
|
|
|
|
|
dh-make \
|
|
|
|
|
dh-exec \
|
|
|
|
|
kmod \
|
|
|
|
|
libtinyxml2-6a \
|
|
|
|
|
libboost-program-options1.67-dev \
|
|
|
|
|
libtinyxml2-dev \
|
|
|
|
|
python \
|
|
|
|
|
python-pip \
|
2020-11-09 20:13:08 -06:00
|
|
|
|
python3 \
|
2020-10-26 15:48:50 -05:00
|
|
|
|
python3-pip \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
libncurses5-dev \
|
|
|
|
|
texinfo \
|
|
|
|
|
dh-autoreconf \
|
|
|
|
|
doxygen \
|
|
|
|
|
devscripts \
|
|
|
|
|
git-buildpackage \
|
|
|
|
|
perl-modules \
|
|
|
|
|
libswitch-perl \
|
|
|
|
|
dh-systemd \
|
2020-10-01 04:16:47 -05:00
|
|
|
|
libzmq5 \
|
|
|
|
|
libzmq3-dev \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
# For quagga build
|
|
|
|
|
libreadline-dev \
|
|
|
|
|
texlive-latex-base \
|
|
|
|
|
texlive-generic-recommended \
|
|
|
|
|
texlive-fonts-recommended \
|
|
|
|
|
libpam0g-dev \
|
|
|
|
|
libpam-dev \
|
|
|
|
|
libcap-dev \
|
|
|
|
|
imagemagick \
|
|
|
|
|
ghostscript \
|
|
|
|
|
groff \
|
|
|
|
|
libpcre3-dev \
|
|
|
|
|
gawk \
|
|
|
|
|
chrpath \
|
|
|
|
|
# For frr build
|
|
|
|
|
libc-ares-dev \
|
|
|
|
|
libsnmp-dev \
|
|
|
|
|
libjson-c3 \
|
|
|
|
|
libjson-c-dev \
|
|
|
|
|
libsystemd-dev \
|
|
|
|
|
python-ipaddr \
|
|
|
|
|
libcmocka-dev \
|
|
|
|
|
python3-all-dev \
|
|
|
|
|
python3-all-dbg \
|
|
|
|
|
install-info \
|
|
|
|
|
logrotate \
|
|
|
|
|
# For libnl3 (local) build
|
|
|
|
|
cdbs \
|
|
|
|
|
# For SAI meta build
|
|
|
|
|
libxml-simple-perl \
|
|
|
|
|
graphviz \
|
|
|
|
|
aspell \
|
|
|
|
|
# For linux build
|
|
|
|
|
bc \
|
|
|
|
|
fakeroot \
|
|
|
|
|
build-essential \
|
|
|
|
|
devscripts \
|
|
|
|
|
quilt \
|
|
|
|
|
stgit \
|
|
|
|
|
# For platform-modules build
|
|
|
|
|
module-assistant \
|
|
|
|
|
# For thrift build\
|
|
|
|
|
gem2deb \
|
|
|
|
|
libboost-all-dev \
|
|
|
|
|
libevent-dev \
|
|
|
|
|
libglib2.0-dev \
|
|
|
|
|
libqt4-dev \
|
|
|
|
|
python-all-dev \
|
|
|
|
|
python-twisted \
|
|
|
|
|
phpunit \
|
|
|
|
|
libbit-vector-perl \
|
|
|
|
|
openjdk-11-jdk \
|
|
|
|
|
javahelper \
|
|
|
|
|
maven-debian-helper \
|
|
|
|
|
ant \
|
|
|
|
|
libhttpclient-java \
|
|
|
|
|
libslf4j-java \
|
|
|
|
|
libservlet3.1-java \
|
|
|
|
|
qt5-default \
|
|
|
|
|
pkg-php-tools \
|
|
|
|
|
# For mellanox sdk build
|
|
|
|
|
libpcre3 \
|
|
|
|
|
libpcre3-dev \
|
|
|
|
|
byacc \
|
|
|
|
|
flex \
|
|
|
|
|
libglib2.0-dev \
|
|
|
|
|
bison \
|
|
|
|
|
expat \
|
|
|
|
|
libexpat1-dev \
|
|
|
|
|
dpatch \
|
|
|
|
|
libdb-dev \
|
|
|
|
|
iptables-dev \
|
|
|
|
|
ctags \
|
|
|
|
|
# For mellanox sai build
|
|
|
|
|
libtool-bin \
|
|
|
|
|
libxml2-dev \
|
|
|
|
|
# For BFN sdk build
|
|
|
|
|
libusb-1.0-0-dev \
|
|
|
|
|
libcurl3-nss-dev \
|
|
|
|
|
libunwind8-dev \
|
|
|
|
|
telnet \
|
|
|
|
|
libc-ares2 \
|
|
|
|
|
libgoogle-perftools4 \
|
|
|
|
|
# For build image
|
|
|
|
|
cpio \
|
|
|
|
|
squashfs-tools \
|
|
|
|
|
zip \
|
|
|
|
|
# For broadcom sdk build
|
|
|
|
|
{%- if CONFIGURED_ARCH == "amd64" %}
|
|
|
|
|
linux-compiler-gcc-8-x86 \
|
|
|
|
|
{%- endif %}
|
|
|
|
|
{%- if CONFIGURED_ARCH == "armhf" %}
|
|
|
|
|
linux-compiler-gcc-8-arm \
|
|
|
|
|
{%- endif %}
|
|
|
|
|
linux-kbuild-4.19 \
|
|
|
|
|
# teamd build
|
|
|
|
|
libdaemon-dev \
|
|
|
|
|
libdbus-1-dev \
|
|
|
|
|
libjansson-dev \
|
|
|
|
|
# For cavium sdk build
|
|
|
|
|
libpcap-dev \
|
|
|
|
|
dnsutils \
|
|
|
|
|
libusb-dev \
|
|
|
|
|
# For debian image reconfiguration
|
|
|
|
|
augeas-tools \
|
|
|
|
|
# For p4 build
|
|
|
|
|
libyaml-dev \
|
|
|
|
|
libevent-dev \
|
|
|
|
|
libjudy-dev \
|
|
|
|
|
libedit-dev \
|
|
|
|
|
libnanomsg-dev \
|
|
|
|
|
python-stdeb \
|
|
|
|
|
# For redis build
|
|
|
|
|
libjemalloc-dev \
|
|
|
|
|
liblua5.1-0-dev \
|
|
|
|
|
lua-bitop-dev \
|
|
|
|
|
lua-cjson-dev \
|
|
|
|
|
# For mft kernel module build
|
|
|
|
|
dkms \
|
|
|
|
|
# For python3.5 build
|
|
|
|
|
sharutils \
|
|
|
|
|
libncursesw5-dev \
|
|
|
|
|
libbz2-dev \
|
|
|
|
|
liblzma-dev \
|
|
|
|
|
libgdbm-dev \
|
|
|
|
|
tk-dev \
|
|
|
|
|
blt-dev \
|
|
|
|
|
libmpdec-dev \
|
|
|
|
|
libbluetooth-dev \
|
|
|
|
|
locales \
|
|
|
|
|
libsqlite3-dev \
|
|
|
|
|
libgpm2 \
|
|
|
|
|
time \
|
|
|
|
|
net-tools \
|
|
|
|
|
xvfb \
|
|
|
|
|
python-sphinx \
|
|
|
|
|
python3-sphinx \
|
|
|
|
|
# For Jenkins static analysis, unit testing and code coverage
|
|
|
|
|
cppcheck \
|
|
|
|
|
clang \
|
|
|
|
|
pylint \
|
|
|
|
|
python-pytest \
|
2020-08-24 12:35:22 -05:00
|
|
|
|
python3-pytest \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
gcovr \
|
|
|
|
|
python-pytest-cov \
|
2020-08-24 12:35:22 -05:00
|
|
|
|
python3-pytest-cov \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
python-parse \
|
|
|
|
|
# For snmpd
|
|
|
|
|
default-libmysqlclient-dev \
|
|
|
|
|
libssl-dev \
|
|
|
|
|
libperl-dev \
|
|
|
|
|
libpci-dev \
|
|
|
|
|
libpci3 \
|
|
|
|
|
libsensors5 \
|
|
|
|
|
libsensors4-dev \
|
|
|
|
|
libwrap0-dev \
|
|
|
|
|
# For lldpd
|
|
|
|
|
debhelper \
|
|
|
|
|
autotools-dev \
|
|
|
|
|
libbsd-dev \
|
|
|
|
|
pkg-config \
|
|
|
|
|
check \
|
|
|
|
|
# For mpdecimal
|
|
|
|
|
docutils-common \
|
|
|
|
|
libjs-sphinxdoc \
|
|
|
|
|
libjs-underscore \
|
|
|
|
|
python-docutils \
|
|
|
|
|
python-jinja2 \
|
|
|
|
|
python-markupsafe \
|
|
|
|
|
python-pygments \
|
|
|
|
|
python-roman \
|
|
|
|
|
python-sphinx \
|
|
|
|
|
sphinx-common \
|
|
|
|
|
python3-sphinx \
|
|
|
|
|
# For sonic config engine testing
|
2020-09-28 21:20:15 -05:00
|
|
|
|
python-dev \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
# For lockfile
|
|
|
|
|
procmail \
|
|
|
|
|
# For gtest
|
|
|
|
|
libgtest-dev \
|
|
|
|
|
cmake \
|
|
|
|
|
# For pam_tacplus build
|
|
|
|
|
autoconf-archive \
|
|
|
|
|
# For iproute2
|
|
|
|
|
cm-super-minimal \
|
|
|
|
|
libatm1-dev \
|
|
|
|
|
libelf-dev \
|
|
|
|
|
libmnl-dev \
|
|
|
|
|
libselinux1-dev \
|
|
|
|
|
linuxdoc-tools \
|
|
|
|
|
lynx \
|
|
|
|
|
texlive-latex-extra \
|
|
|
|
|
texlive-latex-recommended \
|
|
|
|
|
iproute2 \
|
|
|
|
|
# For bash
|
|
|
|
|
texi2html \
|
|
|
|
|
# For initramfs
|
2020-02-03 22:19:44 -06:00
|
|
|
|
shellcheck \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
bash-completion \
|
|
|
|
|
{%- if CONFIGURED_ARCH == "amd64" %}
|
|
|
|
|
# For sonic vs image build
|
|
|
|
|
dosfstools \
|
|
|
|
|
qemu-kvm \
|
|
|
|
|
libvirt-clients \
|
|
|
|
|
{%- endif %}
|
|
|
|
|
# For lm-sensors
|
|
|
|
|
librrd8 \
|
|
|
|
|
librrd-dev \
|
|
|
|
|
rrdtool \
|
|
|
|
|
# For smartmontools 6.6-1
|
|
|
|
|
automake1.11 \
|
|
|
|
|
libselinux1-dev \
|
|
|
|
|
# For kdump-tools
|
|
|
|
|
liblzo2-dev \
|
|
|
|
|
# For iptables
|
|
|
|
|
libnetfilter-conntrack-dev \
|
|
|
|
|
libnftnl-dev \
|
|
|
|
|
# For SAI3.7
|
2020-05-30 15:44:19 -05:00
|
|
|
|
protobuf-compiler \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
libprotobuf-dev \
|
2020-05-30 15:44:19 -05:00
|
|
|
|
xxd \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
# For DHCP Monitor tool
|
|
|
|
|
libexplain-dev \
|
2020-06-09 02:25:17 -05:00
|
|
|
|
libevent-dev \
|
2020-07-29 16:19:03 -05:00
|
|
|
|
# For libyang
|
|
|
|
|
swig \
|
2020-06-09 02:25:17 -05:00
|
|
|
|
# For SWI Tools
|
2020-08-06 05:16:11 -05:00
|
|
|
|
python-m2crypto \
|
|
|
|
|
# For build dtb
|
2020-10-26 15:48:50 -05:00
|
|
|
|
device-tree-compiler \
|
|
|
|
|
# For sonic-mgmt-framework
|
|
|
|
|
autoconf \
|
|
|
|
|
m4 \
|
|
|
|
|
libxml2-utils \
|
|
|
|
|
xsltproc \
|
|
|
|
|
python-lxml \
|
|
|
|
|
libexpat1-dev
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
|
|
|
|
## Config dpkg
|
|
|
|
|
## install the configuration file if it’s currently missing
|
|
|
|
|
RUN sudo augtool --autosave "set /files/etc/dpkg/dpkg.cfg/force-confmiss"
|
|
|
|
|
## combined with confold: overwrite configuration files that you have not modified
|
|
|
|
|
RUN sudo augtool --autosave "set /files/etc/dpkg/dpkg.cfg/force-confdef"
|
|
|
|
|
## do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix
|
|
|
|
|
RUN sudo augtool --autosave "set /files/etc/dpkg/dpkg.cfg/force-confold"
|
|
|
|
|
|
|
|
|
|
# For linux build
|
|
|
|
|
RUN apt-get -y build-dep linux
|
|
|
|
|
|
|
|
|
|
# For gobgp and telemetry build
|
2020-05-04 17:00:07 -05:00
|
|
|
|
RUN export VERSION=1.14.2 \
|
2020-02-02 14:03:34 -06:00
|
|
|
|
{%- if CONFIGURED_ARCH == "armhf" %}
|
|
|
|
|
&& wget https://storage.googleapis.com/golang/go$VERSION.linux-armv6l.tar.gz \
|
|
|
|
|
&& tar -C /usr/local -xzf go$VERSION.linux-armv6l.tar.gz \
|
|
|
|
|
{%- elif CONFIGURED_ARCH == "arm64" %}
|
|
|
|
|
&& wget https://storage.googleapis.com/golang/go$VERSION.linux-arm64.tar.gz \
|
|
|
|
|
&& tar -C /usr/local -xzf go$VERSION.linux-arm64.tar.gz \
|
|
|
|
|
{%- else %}
|
|
|
|
|
&& wget https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz \
|
|
|
|
|
&& tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz \
|
|
|
|
|
{%- endif %}
|
|
|
|
|
&& echo 'export GOROOT=/usr/local/go' >> /etc/bash.bashrc \
|
|
|
|
|
&& echo 'export PATH=$PATH:$GOROOT/bin' >> /etc/bash.bashrc \
|
|
|
|
|
&& rm go$VERSION.linux-*.tar.gz
|
|
|
|
|
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip3 install --upgrade pip
|
2020-10-29 21:01:17 -05:00
|
|
|
|
RUN pip2 install --upgrade pip
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN apt-get purge -y python-pip python3-pip
|
|
|
|
|
|
2020-08-24 12:35:22 -05:00
|
|
|
|
# For building Python packages
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install setuptools==40.8.0
|
2020-08-24 12:35:22 -05:00
|
|
|
|
RUN pip3 install setuptools==49.6.00
|
|
|
|
|
|
2020-10-14 12:16:35 -05:00
|
|
|
|
# For building sonic-utilities
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install fastentrypoints
|
2020-10-14 12:16:35 -05:00
|
|
|
|
RUN pip3 install fastentrypoints
|
|
|
|
|
|
2020-08-24 12:35:22 -05:00
|
|
|
|
# For running Python unit tests
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install pytest-runner==4.4
|
2020-08-24 12:35:22 -05:00
|
|
|
|
RUN pip3 install pytest-runner==5.2
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install mockredispy==2.9.3
|
2020-08-24 12:35:22 -05:00
|
|
|
|
RUN pip3 install mockredispy==2.9.3
|
|
|
|
|
|
|
|
|
|
# For Python 2 unit tests, we need 'mock'. The last version of 'mock'
|
|
|
|
|
# which supports Python 2 is 3.0.5. In Python 3, 'mock' is part of 'unittest'
|
|
|
|
|
# in the standard library
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install mock==3.0.5
|
2020-08-24 12:35:22 -05:00
|
|
|
|
|
2020-02-02 14:03:34 -06:00
|
|
|
|
# For p4 build
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install \
|
|
|
|
|
ctypesgen==1.0.2 \
|
|
|
|
|
crc16
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
|
|
|
|
# For sonic config engine testing
|
2020-09-28 21:20:15 -05:00
|
|
|
|
# Install pyangbind here, outside sonic-config-engine dependencies, as pyangbind causes enum34 to be installed.
|
|
|
|
|
# enum34 causes Python 're' package to not work properly as it redefines an incompatible enum.py module
|
|
|
|
|
# https://github.com/robshakir/pyangbind/issues/232
|
|
|
|
|
RUN pip3 install pyangbind==0.8.1
|
|
|
|
|
RUN pip3 uninstall -y enum34
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
|
|
|
|
# For templating
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install j2cli==0.3.10
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
2020-10-26 15:48:50 -05:00
|
|
|
|
# For sonic-mgmt-framework
|
|
|
|
|
RUN pip2 install "PyYAML==5.3.1"
|
|
|
|
|
RUN pip3 install "PyYAML==5.3.1"
|
|
|
|
|
RUN pip2 install "lxml==4.6.1"
|
|
|
|
|
RUN pip3 install "lxml==4.6.1"
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
|
|
|
|
# For sonic-platform-common testing
|
|
|
|
|
RUN pip3 install redis
|
|
|
|
|
|
|
|
|
|
# For supervisor build
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN apt-get install python-meld3
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
|
|
|
|
# For vs image build
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install pexpect==4.6.0
|
2020-11-09 20:13:08 -06:00
|
|
|
|
RUN pip3 install pexpect==4.8.0
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
2020-05-27 04:21:58 -05:00
|
|
|
|
# For sonic-swss-common testing
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install Pympler==0.8
|
2020-11-09 20:13:08 -06:00
|
|
|
|
RUN pip3 install Pympler==0.8
|
2020-05-27 04:21:58 -05:00
|
|
|
|
|
2020-11-07 15:03:41 -06:00
|
|
|
|
# For sonic_yang_model build
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install pyang==2.1.1
|
2020-04-15 04:51:31 -05:00
|
|
|
|
|
2020-02-02 14:03:34 -06:00
|
|
|
|
# For mgmt-framework build
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install mmh3
|
2020-05-20 22:33:50 -05:00
|
|
|
|
RUN apt-get install -y xsltproc
|
2020-02-02 14:03:34 -06:00
|
|
|
|
|
|
|
|
|
# Install dependencies for isc-dhcp-relay build
|
|
|
|
|
RUN apt-get -y build-dep isc-dhcp
|
|
|
|
|
|
|
|
|
|
# Install vim
|
|
|
|
|
RUN apt-get install -y vim
|
|
|
|
|
|
|
|
|
|
# Install rsyslog
|
|
|
|
|
RUN apt-get install -y rsyslog
|
|
|
|
|
|
|
|
|
|
RUN cd /usr/src/gtest && cmake . && make -C /usr/src/gtest
|
|
|
|
|
|
|
|
|
|
RUN mkdir /var/run/sshd
|
|
|
|
|
EXPOSE 22
|
|
|
|
|
|
|
|
|
|
# Install depot-tools (for git-retry)
|
|
|
|
|
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /usr/share/depot_tools
|
|
|
|
|
ENV PATH /usr/share/depot_tools:$PATH
|
|
|
|
|
|
|
|
|
|
# Install docker engine 17.03.2~ce-0 inside docker and enable experimental feature
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
|
apt-transport-https \
|
|
|
|
|
ca-certificates \
|
|
|
|
|
curl \
|
|
|
|
|
gnupg2 \
|
|
|
|
|
software-properties-common
|
2020-11-11 20:19:48 -06:00
|
|
|
|
{%- if CONFIGURED_ARCH == "armhf" %}
|
|
|
|
|
RUN update-ca-certificates --fresh
|
|
|
|
|
{%- endif %}
|
2020-02-02 14:03:34 -06:00
|
|
|
|
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
|
|
|
|
|
RUN add-apt-repository \
|
|
|
|
|
"deb [arch={{ CONFIGURED_ARCH }}] https://download.docker.com/linux/debian \
|
|
|
|
|
$(lsb_release -cs) \
|
|
|
|
|
stable"
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
{%- if CONFIGURED_ARCH == "amd64" %}
|
2020-05-19 00:38:23 -05:00
|
|
|
|
RUN apt-get install -y docker-ce=5:18.09.5~3-0~debian-buster docker-ce-cli=5:18.09.5~3-0~debian-buster
|
2020-02-02 14:03:34 -06:00
|
|
|
|
{%- else %}
|
2020-05-21 07:09:06 -05:00
|
|
|
|
RUN apt-get install -y docker-ce=18.06.3~ce~3-0~debian
|
2020-02-02 14:03:34 -06:00
|
|
|
|
{%- endif %}
|
|
|
|
|
RUN echo "DOCKER_OPTS=\"--experimental --storage-driver=vfs\"" >> /etc/default/docker
|
2020-04-13 23:13:15 -05:00
|
|
|
|
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
|
2020-06-09 02:25:17 -05:00
|
|
|
|
|
|
|
|
|
# Install swi tools
|
2020-10-26 15:48:50 -05:00
|
|
|
|
RUN pip2 install git+https://github.com/aristanetworks/swi-tools.git@d51761ec0bb93c73039233f3c01ed48235ffad00
|