2016-12-05 13:12:19 -06:00
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
MAINTAINER johnar@microsoft.com
|
|
|
|
|
2017-04-13 14:09:00 -05:00
|
|
|
RUN echo "deb http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
echo "deb-src http://debian-archive.trafficmanager.net/debian/ jessie main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
echo "deb http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
echo "deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
echo 'deb http://debian-archive.trafficmanager.net/debian jessie-backports main' >> /etc/apt/sources.list
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-02-16 23:48:49 -06:00
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2017-06-11 13:46:17 -05:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2017-04-13 14:09:00 -05:00
|
|
|
apt-utils \
|
|
|
|
default-jre-headless \
|
|
|
|
openssh-server \
|
|
|
|
curl \
|
|
|
|
wget \
|
|
|
|
unzip \
|
|
|
|
git \
|
|
|
|
build-essential \
|
|
|
|
libtool \
|
|
|
|
lintian \
|
|
|
|
sudo \
|
|
|
|
dh-make \
|
|
|
|
dh-exec \
|
|
|
|
kmod \
|
|
|
|
libtinyxml2-2 \
|
|
|
|
libboost-program-options1.55-dev \
|
|
|
|
libtinyxml2-dev \
|
|
|
|
python \
|
|
|
|
python-pip \
|
|
|
|
libncurses5-dev \
|
|
|
|
texinfo \
|
|
|
|
dh-autoreconf \
|
|
|
|
python3-pip \
|
|
|
|
doxygen \
|
|
|
|
devscripts \
|
|
|
|
git-buildpackage \
|
|
|
|
perl-modules \
|
|
|
|
libswitch-perl \
|
|
|
|
dh-systemd \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For quagga build
|
2017-04-13 14:09:00 -05:00
|
|
|
libreadline-dev \
|
|
|
|
texlive-latex-base \
|
|
|
|
texlive-generic-recommended \
|
|
|
|
texlive-fonts-recommended \
|
|
|
|
libpam0g-dev \
|
|
|
|
libpam-dev \
|
|
|
|
libcap-dev \
|
|
|
|
imagemagick \
|
|
|
|
ghostscript \
|
|
|
|
groff \
|
|
|
|
libpcre3-dev \
|
|
|
|
gawk \
|
|
|
|
chrpath \
|
2017-04-20 11:12:27 -05:00
|
|
|
# For frr build
|
|
|
|
libc-ares-dev \
|
|
|
|
hardening-wrapper \
|
|
|
|
libsnmp-dev \
|
|
|
|
libjson0 \
|
|
|
|
libjson0-dev \
|
|
|
|
libsystemd-dev \
|
|
|
|
python-ipaddr \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For libnl3 (local) build
|
2017-04-13 14:09:00 -05:00
|
|
|
cdbs \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For SAI meta build
|
2017-04-13 14:09:00 -05:00
|
|
|
libxml-simple-perl \
|
|
|
|
graphviz \
|
|
|
|
aspell \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For linux build
|
2017-04-13 14:09:00 -05:00
|
|
|
bc \
|
|
|
|
fakeroot \
|
|
|
|
build-essential \
|
|
|
|
devscripts \
|
|
|
|
quilt \
|
|
|
|
stgit \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For platform-modules build
|
2017-04-13 14:09:00 -05:00
|
|
|
module-assistant \
|
|
|
|
# For thrift build\
|
|
|
|
gem2deb \
|
|
|
|
libboost-all-dev \
|
|
|
|
libevent-dev \
|
|
|
|
libglib2.0-dev \
|
|
|
|
libqt4-dev \
|
|
|
|
python-all-dev \
|
|
|
|
python-twisted \
|
|
|
|
php5-dev \
|
|
|
|
phpunit \
|
|
|
|
libbit-vector-perl \
|
|
|
|
openjdk-7-jdk \
|
|
|
|
javahelper \
|
|
|
|
maven-debian-helper \
|
|
|
|
ant \
|
|
|
|
libmaven-ant-tasks-java \
|
|
|
|
libhttpclient-java \
|
|
|
|
libslf4j-java \
|
|
|
|
libservlet3.1-java \
|
|
|
|
qt5-default \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For mellanox sdk build
|
2017-04-13 14:09:00 -05:00
|
|
|
libpcre3 \
|
|
|
|
libpcre3-dev \
|
|
|
|
byacc \
|
|
|
|
flex \
|
|
|
|
libglib2.0-dev \
|
|
|
|
bison \
|
|
|
|
expat \
|
|
|
|
libexpat1-dev \
|
|
|
|
dpatch \
|
|
|
|
libdb-dev \
|
|
|
|
iptables-dev \
|
|
|
|
swig \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For mellanox sai build
|
2017-04-13 14:09:00 -05:00
|
|
|
libtool-bin \
|
|
|
|
libxml2-dev \
|
2017-11-02 19:11:14 -05:00
|
|
|
# For BFN sdk build
|
|
|
|
libusb-1.0-0-dev \
|
|
|
|
libcurl3-nss-dev \
|
2017-12-20 12:23:35 -06:00
|
|
|
libunwind8-dev \
|
2017-11-17 15:39:17 -06:00
|
|
|
telnet \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For build image
|
2017-04-13 14:09:00 -05:00
|
|
|
cpio \
|
|
|
|
squashfs-tools \
|
|
|
|
zip \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For broadcom sdk build
|
2017-04-13 14:09:00 -05:00
|
|
|
linux-compiler-gcc-4.8-x86 \
|
|
|
|
linux-kbuild-3.16 \
|
2016-12-05 13:12:19 -06:00
|
|
|
# teamd build
|
2017-04-13 14:09:00 -05:00
|
|
|
libdaemon-dev \
|
|
|
|
libdbus-1-dev \
|
|
|
|
libjansson-dev \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For cavium sdk build
|
2017-04-13 14:09:00 -05:00
|
|
|
libpcap-dev \
|
|
|
|
dnsutils \
|
|
|
|
libusb-dev \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For debian image reconfiguration
|
2017-04-13 14:09:00 -05:00
|
|
|
augeas-tools \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For p4 build
|
2017-04-13 14:09:00 -05:00
|
|
|
libyaml-dev \
|
|
|
|
libevent-dev \
|
|
|
|
libjudy-dev \
|
|
|
|
libedit-dev \
|
|
|
|
libnanomsg-dev \
|
|
|
|
python-stdeb \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For redis build
|
2017-04-13 14:09:00 -05:00
|
|
|
libjemalloc-dev \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For mft kernel module build
|
2017-04-13 14:09:00 -05:00
|
|
|
dkms \
|
2016-12-07 09:59:21 -06:00
|
|
|
# For python3.5 build
|
2017-04-13 14:09:00 -05:00
|
|
|
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 \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For Jenkins static analysis, unit testing and code coverage
|
2017-04-13 14:09:00 -05:00
|
|
|
cppcheck \
|
|
|
|
clang \
|
|
|
|
pylint \
|
|
|
|
gcovr \
|
|
|
|
python-pytest=2.6.3* \
|
2017-12-12 22:07:42 -06:00
|
|
|
python3-pytest=2.6.3* \
|
2017-04-13 14:09:00 -05:00
|
|
|
python-pytest-cov \
|
2017-12-12 22:07:42 -06:00
|
|
|
python3-pytest-cov \
|
2017-04-13 14:09:00 -05:00
|
|
|
python-parse \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For snmpd
|
2017-04-13 14:09:00 -05:00
|
|
|
libmysqlclient-dev \
|
|
|
|
libmysqld-dev \
|
|
|
|
libperl-dev \
|
|
|
|
libpci-dev \
|
|
|
|
libpci3 \
|
|
|
|
libsensors4 \
|
|
|
|
libsensors4-dev \
|
|
|
|
libwrap0-dev \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For mpdecimal
|
2017-04-13 14:09:00 -05:00
|
|
|
docutils-common \
|
|
|
|
libjs-sphinxdoc \
|
|
|
|
libjs-underscore \
|
|
|
|
python-docutils \
|
|
|
|
python-markupsafe \
|
|
|
|
python-pygments \
|
|
|
|
python-roman \
|
|
|
|
sphinx-common \
|
2017-03-17 13:07:12 -05:00
|
|
|
# For sonic config engine testing
|
2017-04-13 14:09:00 -05:00
|
|
|
python-lxml \
|
|
|
|
python-netaddr \
|
|
|
|
python-ipaddr \
|
|
|
|
python-yaml \
|
2017-12-12 22:07:42 -06:00
|
|
|
# For sonic utilities
|
|
|
|
python3-netaddr \
|
2017-04-13 14:09:00 -05:00
|
|
|
# For lockfile
|
|
|
|
procmail \
|
|
|
|
# For gtest
|
|
|
|
libgtest-dev \
|
2017-10-27 19:59:03 -05:00
|
|
|
cmake \
|
2017-12-12 22:07:42 -06:00
|
|
|
# For pam_tacplus build
|
|
|
|
autoconf-archive \
|
2017-10-27 19:59:03 -05:00
|
|
|
# For python-based swsscommon
|
2017-12-12 22:07:42 -06:00
|
|
|
swig3.0 \
|
|
|
|
# For iproute2
|
|
|
|
cm-super-minimal \
|
|
|
|
libatm1-dev \
|
|
|
|
libelf-dev \
|
|
|
|
libmnl-dev \
|
|
|
|
libselinux1-dev \
|
|
|
|
linuxdoc-tools \
|
|
|
|
lynx \
|
|
|
|
texlive-latex-extra \
|
|
|
|
texlive-latex-recommended
|
2017-07-06 12:32:27 -05:00
|
|
|
|
2017-04-13 14:09:00 -05:00
|
|
|
# For linux build
|
2017-07-06 12:32:27 -05:00
|
|
|
RUN apt-get -y build-dep linux
|
|
|
|
|
2017-04-13 14:09:00 -05:00
|
|
|
# For gobgp build
|
2017-07-15 01:53:44 -05:00
|
|
|
RUN export VERSION=1.8.3 \
|
|
|
|
&& wget https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz \
|
|
|
|
&& tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz \
|
|
|
|
&& echo 'export GOROOT=/usr/local/go' >> /etc/bash.bashrc \
|
|
|
|
&& echo 'export PATH=$PATH:$GOROOT/bin' >> /etc/bash.bashrc
|
2017-07-06 12:32:27 -05:00
|
|
|
|
2018-04-24 18:01:17 -05:00
|
|
|
# Upgrade pip2
|
|
|
|
# Note: use pip2 specific version so jinja2 2.10 will install
|
|
|
|
RUN python2 -m pip install -U pip==9.0.3
|
|
|
|
|
2017-04-13 14:09:00 -05:00
|
|
|
# For p4 build
|
2017-07-06 12:32:27 -05:00
|
|
|
RUN pip install \
|
2017-04-13 14:09:00 -05:00
|
|
|
ctypesgen \
|
2017-07-06 12:32:27 -05:00
|
|
|
crc16
|
|
|
|
|
2017-04-13 14:09:00 -05:00
|
|
|
# For sonic config engine testing
|
2018-04-24 18:01:17 -05:00
|
|
|
RUN pip install pyangbind==0.6.0
|
|
|
|
# Note: force upgrade debian packaged jinja2, if installed
|
|
|
|
RUN pip install --force-reinstall --upgrade jinja2>=2.10
|
|
|
|
|
|
|
|
# For templating (requiring jinja2)
|
|
|
|
RUN pip install j2cli
|
2017-07-06 12:32:27 -05:00
|
|
|
|
2017-10-26 18:49:25 -05:00
|
|
|
# For sonic utilities testing
|
|
|
|
RUN pip install click-default-group click natsort tabulate
|
|
|
|
|
2017-07-06 12:32:27 -05:00
|
|
|
# For supervisor build
|
|
|
|
RUN pip install meld3 mock
|
2016-12-19 11:39:31 -06:00
|
|
|
|
2017-07-06 12:32:27 -05:00
|
|
|
# Install dependencies for isc-dhcp-relay build
|
2017-06-24 14:05:04 -05:00
|
|
|
RUN apt-get -y build-dep isc-dhcp
|
|
|
|
|
2018-02-21 14:25:14 -06:00
|
|
|
# Install vim
|
|
|
|
RUN apt-get install -y vim
|
|
|
|
|
|
|
|
# Install rsyslog
|
|
|
|
RUN apt-get install -y rsyslog
|
|
|
|
|
2017-04-13 14:09:00 -05:00
|
|
|
RUN cd /usr/src/gtest && cmake . && make -C /usr/src/gtest
|
|
|
|
|
|
|
|
RUN mkdir /var/run/sshd
|
|
|
|
EXPOSE 22
|
2017-03-08 01:11:42 -06:00
|
|
|
|
2016-12-05 13:12:19 -06:00
|
|
|
# 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
|
|
|
|
|
2017-06-30 00:21:12 -05:00
|
|
|
# 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
|
|
|
|
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
|
|
|
|
RUN add-apt-repository \
|
|
|
|
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
|
|
|
$(lsb_release -cs) \
|
|
|
|
stable"
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y docker-ce=17.03.2~ce-0~debian-jessie
|
2017-02-06 23:11:18 -06:00
|
|
|
RUN echo "DOCKER_OPTS=\"--experimental\"" >> /etc/default/docker
|