2016-12-05 13:12:19 -06:00
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
MAINTAINER johnar@microsoft.com
|
|
|
|
|
2020-01-08 10:34:45 -06:00
|
|
|
COPY ["no-check-valid-until", "/etc/apt/apt.conf.d/"]
|
|
|
|
|
2019-03-27 01:46:39 -05:00
|
|
|
## Remove retired jessie-updates repo
|
|
|
|
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
|
|
|
|
|
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 && \
|
2019-03-27 01:46:39 -05:00
|
|
|
echo "deb-src http://debian-archive.trafficmanager.net/debian-security/ jessie/updates main contrib non-free" >> /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 \
|
2018-10-02 12:24:59 -05:00
|
|
|
install-info \
|
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 \
|
2020-04-13 10:29:54 -05:00
|
|
|
ctags \
|
2016-12-05 13:12:19 -06:00
|
|
|
# For mellanox sai build
|
2017-04-13 14:09:00 -05:00
|
|
|
libtool-bin \
|
|
|
|
libxml2-dev \
|
[barefoot]: Support for platforms based on Barefoot Networks' device (#1796)
* Initial commit
* Add Ingrasys S9180-32X platform dirver.
Signed-off-by: Wade He <chihen.he@gmail.com>
* Add bfn.service for init barefoot.
Signed-off-by: Wade He <chihen.he@gmail.com>
* [Barefoot Beta] Add some functions and fixed some bugs.
1. Update sensors.conf.
2. Fixed IO expander init.
3. Fixed PSU EEPROM.
4. Fixed MB EEPROM.
5. Add fancontrol and fan init.
6. Add SYS LED control (sys, fan, fan tray).
7. 2.5V compute and setup max and min.
8. Fixed typo MB eeprom delete address.
9. Remove coretemp to BMC.
10. Add active CPLD.
11. Modify SFP+ GPIO slave address.
12. Modify tmp75 Near Port 32 slave address.
Signed-off-by: Wade He <chihen.he@gmail.com>
* Add bfn script in /etc/init.d/
Signed-off-by: Wade He <chihen.he@gmail.com>
* Add bfn service in debian
Signed-off-by: Wade He <chihen.he@gmail.com>
* Fixed CPLD switch LED behavior.
Signed-off-by: Wade He <chihen.he@gmail.com>
* [Barefoot Beta] Fixed sensors and hwmon order.
1. Fixed ignore sensors Vbat.
2. Reorg hwmon order.
Signed-off-by: Wade He <chihen.he@gmail.com>
* Fixed PSU1 and PSU2 EEPROM order.
Signed-off-by: Wade He <chihen.he@gmail.com>
* initial barefoot checkin october 2017
* update refpoint
* update refpoints
* update refpoints to bf-master
* update refpoint
* update refpoint to tested version
* change to platform from asic
* update refpoint for swss
* revert core creation setting
* update refpoints
* add telnet for debug shell
* update refpoints 11/17/17
* missed change in file on previous merge
* [CPLD] Fixed blink LED issue.
* Fixed blink LED mask set error.
Signed-off-by: Wade He <chihen.he@gmail.com>
* Update bf_kdrv.c for 6.0.2.39
* Update bf kernel driver
* Add bf_fun kernel module.
* Update bf_tun for fixed build error
* merge with Azure master (12/12/17)
* update swss refpoint
* update refpoint of swss
* library dependency for stack unroll
* update refpoint to bf-master
* [DHCP relay]: Fix circuit ID and remote ID bugs (#1248)
* [DHCP relay]: Fix circuit ID and remote ID bugs
* Set circuit_id_len after setting circuit_id_len to ip->name
* [Platform] Add Psuutil and update sensors.conf for S9100-32X, S8810-32Q and S9200-64X (#1272)
* Add I2C CPLD kernel module for psuutil.
* Support psuutil script.
* Add voltage min and max threshold.
* Update sensors.conf for tmp75.
Signed-off-by: Wade He <chihen.he@gmail.com>
* Allow multi platform support - infra (more changes to follow)
* update relative path to include platform for clarity
* [Platform] Add Ingrasys S9130-32X and S9230-64X with Nephos Switch ASIC for "branch 201712" (#1274)
- What I did
Add switch ASIC vendor: Nephos
Add Nephos platforms: Ingrasys S9130-32X, Ingrasys S9230-64X
- How I did it
Add platform/nephos files
Add platform/nephos/sonic-platform-modules-ingrasys submodule
Add device/ingrasys/x86_64-ingrasys_s9130_32x-r0 files
Add device/ingrasys/x86_64-ingrasys_s9230_64x-r0 files
Add SONiC to support Nephos platform
Update Head of submodule src/sonic-sairedis to "3b817bb"
- How to verify it
To build SONiC installer image and docker images, run the following commands:
make configure PLATFORM=nephos
make target/sonic-nephos.bin
Check system and network feature is worked as well
- Description for the changelog
Add switch ASIC vendor and platforms for Nephos
- A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: Sam Yang <yang.kaiyu@gmail.com>
* change source of files to github (from dropbox), update sairedis refpoint
* update refpoint of sairedis
* [centec] support CENTEC SAI 1.0 on 201712 branch and update e582-48x6q board (#1269)
* [marvel]: Marvell's updates for SONiC.201712 & SAI v1.0 (#1287)
* update sairedis (fast-boot refpoint)
* fix syncd rpc make files
* update refpoint to handle Makefile change (no functional change)
* [Marvell]: Add support for SLM5401-54x device (#1307)
* Marvell's updates for SONiC.201712 & SAI v1.0
* [Platform] Add Marvell's SLM5401-54x for branch 201712
* [Broadcom]: Update Boradcom SAI package to 3.0.3.3-3 (#1312) (#1321)
- update Arista 7050-QX32S config.bcm file
- update Accton th-as771*-32x100G.config.bcm files
* update refpoint for Makefile chnage in sairedis
* update refpoint - sairedis
* update sairedis to older refpoint till we debug clean build
* export asic platform for build
* update refpoint for makefiles
* [PLATFORM] Centec update E582 driver fan/epprom/sensor (#1332)
* Upload wnc-osw1800
* Modify for Barefoot suggest
* Revert bfn-platform.mk
* Update bfn-platform-wnc.mk
Update parameter name
* Update parameter name
* initial support for WNC platform
* change switch name to "switch"
* Delete bf modules for rel_7_0
* Add Ingrasys S9180 platform
Signed-off-by: Wade He <chihen.he@gmail.com>
* Modify bfnsdk for Ingrasys S9180 platform
Signed-off-by: Wade He <chihen.he@gmail.com>
* Resolved the conflict.
* Resolved the conflict.
* Update submodule path and url.
* Delete unused file.
* Update PSU GPIO and EEPROM for psuutil.
* Add psuutil in S9180-32X
Signed-off-by: Wade He <chihen.he@gmail.com>
* update refpoint
* update refpoint
* change contact email, update refpoint
* cleanup and update kernel modules
* updates based on review
* update refpoint
* update refpoint
* fix typo in config script to check for platforms
* remove stale file
* resolve conflicts
* cleanup diffs with Azure repo and update SDK debs
* update refpoints to Azure
* address review comments
* revert refpoint of swss-common
* porting the build fix from master
* porting build fix from master
* Minor Fix
* Minor fix
* Temp to sde deb packages url
* Update sonic - sairedis,swss & swss-common refpoints
* Update git modules url path to bfn repo
* updated paths for swss, swss-common & sairedis
* Update refpoint for sonic-swss to local bfn repo
* Update URL for downloading sde debian packages
* porting fix links of debian git server from master
* porting fix links of debian git server from master
* [Ingrasys] Add platform support for S9280-64X with Barefoot ASIC
* Update ref points for swss, swss-common and sairedis repos
* Add sonic platform scripts for bfn montara/maverick
* Call sh scripts instead of calling py scripts
* Address upstream PR Comments (#10)
* Update bf-master with azure/master
* Undo changes to some files
* Revert "Address upstream PR Comments (#10)"
This reverts commit a7fddb83ca1073f90fbe46955ba57a9b43742c73.
* Address upstream comments (#11)
* Remove all non bfn specific changes from upstream PR
* Revert "Address upstream comments (#11)"
This reverts commit 559132103e5c73e43f4282d1559ede03f16abfea.
* Undo non bfn changes
* Little more cleanup
* Add back code removed in merge
* export CONFIGURED_PLATFORM
* Update sairedis and swss refpoints
* Address Upstream PR comment
* change deb pkg dependency from 3.16.0-4-amd64 to 3.16.0-5-amd64
* Set default tx queue len for usb0 interface to 64
* Update sairedis refpoint
* Update swss ref point
* Add bfn buffer cfg files for montara/maverick as per new design
* Update buffer cfg templates for bfn montara
* add non zero size to buffer profile
* add macro to generate port lists
* Update buffer cfg templates for bfn mavericks
* add non zero size for buffer profiles
* add port generation macro
* Add missing psmisc package
* BGP docker seems to be missing killall utility being used by fast-reboot script. This is causing non graceful termination of BGP sessions.
Adding psmisc to resolve this issue.
* Update swss ref point
* Update swss ref point
* Update sairedis refpoint
* Update sairedis refpoint
* Update sairedis refpoint
* Update sairedis refpoint
* Update refpoint for sairedis and swss
* sairedis to azure master
* swss to latest bfn bf-master
* Update gitmodules
Update url for sairedis to azure master
* Correct typo in bfn platform script
* Update swss and sairedis ref points
* Update swss ref point
* Address Review comments
* Update swws path in gitmodules to azure master
* update swss refpoint
* update base docker j2 file -remove psmisc package (could be a concern, would cause fast reboot to not work correctly will fix in another PR)
* Fix sairedis refpoint broken in by previous merge
* Remove psmisc from docker base image
* This will break fast reboot as killall is required for killing bgp process and initiating graceful termination of BGP session.
Will fix this in a seperate PR. Need this for SONIC upstreaming
* Address upstream comments
* Remove bmc interface from interface jinja template and sample output interfaces file
* Add bmc interface at boot time to network interfaces for bfn bmc based platforms
* Remove autogen ingrasys debian files
* Revert "Remove autogen ingrasys debian files"
* Buffer and qos config template fix for bfn platforms (#21)
SWI-1509 Buffer and qos config template fix for bfn platforms
* Fix qos config files for montara & mavericks (#22)
* Reference only ppg 3,4 in qos files as no profiles are attached to 0,1 in buffer configs
* Fix vs test (#23)
2018-07-24 12:23:12 -05:00
|
|
|
# For BFN sdk build
|
|
|
|
libusb-1.0-0-dev \
|
|
|
|
libcurl3-nss-dev \
|
|
|
|
libunwind8-dev \
|
|
|
|
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
|
2019-09-26 20:14:30 -05:00
|
|
|
linux-compiler-gcc-4.9-x86 \
|
2017-04-13 14:09:00 -05:00
|
|
|
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-06 17:59:33 -06:00
|
|
|
python3-pytest=2.6.3* \
|
2017-04-13 14:09:00 -05:00
|
|
|
python-pytest-cov \
|
2017-12-06 17:59:33 -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 \
|
|
|
|
# For lockfile
|
|
|
|
procmail \
|
|
|
|
# For gtest
|
|
|
|
libgtest-dev \
|
2017-10-27 19:59:03 -05:00
|
|
|
cmake \
|
2017-12-07 05:36:17 -06:00
|
|
|
# For pam_tacplus build
|
|
|
|
autoconf-archive \
|
2017-10-27 19:59:03 -05:00
|
|
|
# For python-based swsscommon
|
2017-11-30 16:59:25 -06:00
|
|
|
swig3.0 \
|
|
|
|
# For iproute2
|
|
|
|
cm-super-minimal \
|
|
|
|
libatm1-dev \
|
|
|
|
libelf-dev \
|
|
|
|
libmnl-dev \
|
|
|
|
libselinux1-dev \
|
|
|
|
linuxdoc-tools \
|
|
|
|
lynx \
|
|
|
|
texlive-latex-extra \
|
2018-06-29 11:59:46 -05:00
|
|
|
texlive-latex-recommended \
|
|
|
|
# For python-click build
|
|
|
|
python-sphinx \
|
|
|
|
python-docutils \
|
|
|
|
python3-all \
|
|
|
|
python3-setuptools \
|
|
|
|
python3-sphinx \
|
|
|
|
python3-docutils \
|
|
|
|
python3-requests \
|
|
|
|
python3-pytest \
|
2018-07-27 19:46:33 -05:00
|
|
|
python3-colorama \
|
|
|
|
# For bash
|
2017-09-08 21:35:42 -05:00
|
|
|
texi2html \
|
|
|
|
# For initramfs
|
2018-09-19 15:14:10 -05:00
|
|
|
bash-completion \
|
2018-11-21 00:32:40 -06:00
|
|
|
# For sonic vs image build
|
|
|
|
dosfstools \
|
|
|
|
qemu-kvm \
|
2020-01-14 12:33:20 -06:00
|
|
|
libvirt-bin \
|
|
|
|
# For DHCP Monitor tool
|
|
|
|
libevent-dev
|
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
|
2018-11-09 23:56:39 -06:00
|
|
|
RUN export VERSION=1.11.2 \
|
2017-07-15 01:53:44 -05:00
|
|
|
&& 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 \
|
2019-09-11 00:00:15 -05:00
|
|
|
ctypesgen==0.r125 \
|
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
|
2019-01-23 20:46:15 -06:00
|
|
|
RUN pip install click-default-group click natsort tabulate netifaces==0.10.7 fastentrypoints
|
2017-10-26 18:49:25 -05:00
|
|
|
|
2017-07-06 12:32:27 -05:00
|
|
|
# For supervisor build
|
|
|
|
RUN pip install meld3 mock
|
2016-12-19 11:39:31 -06:00
|
|
|
|
2018-11-21 00:32:40 -06:00
|
|
|
# For vs image build
|
|
|
|
RUN pip install pexpect==4.6.0
|
|
|
|
|
2020-05-27 04:21:58 -05:00
|
|
|
# For sonic-utilities build
|
[build] Fix the snmp docker build error. (#7452) (#7459)
* [build] Fix the snmp docker build error. (#7452)
Issue is get_pip.py is moved to pip 21.1 (https://github.com/pypa/get-pip/commits/main) which is not compatible with 3.6.
Issue of pip itself is fixed as part of 21.1.1 in pip community (pypa/pip#9835).
However get-pip.py is still not updated to latest pip. Also get.pip.py does not support python 3.6 version explicitly (pypa/get-pip#88)
Step 15/29 : RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6
---> Running in bece31f49267
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1891k 100 1891k 0 0 9564k 0 --:--:-- --:--:-- --:--:-- 9600k
Traceback (most recent call last):
File "<stdin>", line 24298, in <module>
File "<stdin>", line 139, in main
File "<stdin>", line 115, in bootstrap
File "<stdin>", line 96, in monkeypatch_for_cert
File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/commands/__init__.py", line 9, in <module>
File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/cli/base_command.py", line 12, in <module>
File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/cli/cmdoptions.py", line 30, in <module>
File "/tmp/tmp5fnxrz0a/pip.zip/pip/_internal/utils/hashes.py", line 2, in <module>
ImportError: cannot import name 'NoReturn'
The command '/bin/sh -c curl https://bootstrap.pypa.io/get-pip.py | python3.6' returned a non-zero code: 1
How I did:
Got the file from https://github.com/pypa/get-pip/tree/21.0 and added to the buildimage
pin pip to the previous release 21.0.1. (Similar is done in other public repos eg: grpc/grpc-java#8115)
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-29 01:08:26 -05:00
|
|
|
RUN pip install nose==1.3.7
|
2020-05-27 04:21:58 -05:00
|
|
|
RUN pip install mockredispy==2.9.3
|
|
|
|
RUN pip install pytest-runner==4.4
|
|
|
|
RUN pip install setuptools==40.8.0
|
|
|
|
|
|
|
|
# For sonic-swss-common testing
|
|
|
|
RUN pip install Pympler==0.8
|
|
|
|
|
2021-04-29 01:09:52 -05:00
|
|
|
# For swsssdk build
|
|
|
|
RUN pip2 install redis==2.10.6
|
|
|
|
RUN pip3 install redis==2.10.6
|
|
|
|
|
2021-04-30 09:14:16 -05:00
|
|
|
# For snmpagent build
|
|
|
|
RUN pip3 install python-arptable>=0.0.1 psutil==5.7.0
|
|
|
|
|
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
|
2018-09-05 17:28:32 -05:00
|
|
|
RUN echo "DOCKER_OPTS=\"--experimental --storage-driver=vfs\"" >> /etc/default/docker
|