[mgmt docker] Clean up docker-sonic-mgmt dockerfile (#4759)
- Alphabetize dependencies to prevent duplicates - Remove unneccesary git clone Signed-off-by: Danny Allen <daall@microsoft.com>
This commit is contained in:
parent
abe2d40cdf
commit
fbdd77594f
@ -2,79 +2,68 @@ FROM ubuntu:16.04
|
|||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && apt-get install -y build-essential \
|
||||||
RUN apt-get install -y \
|
cmake \
|
||||||
openssh-server \
|
curl \
|
||||||
gcc \
|
default-jre \
|
||||||
vim \
|
gcc \
|
||||||
make \
|
git \
|
||||||
git \
|
inetutils-ping \
|
||||||
sudo \
|
libffi-dev \
|
||||||
python \
|
libssl-dev \
|
||||||
python-dev \
|
libxml2 \
|
||||||
python-cffi \
|
libxslt1-dev \
|
||||||
libffi-dev \
|
make \
|
||||||
libssl-dev \
|
openssh-server \
|
||||||
sshpass \
|
psmisc \
|
||||||
libxml2 \
|
python \
|
||||||
libxslt1-dev \
|
python-dev \
|
||||||
python-setuptools \
|
python-scapy \
|
||||||
build-essential \
|
python-setuptools \
|
||||||
curl \
|
rsyslog \
|
||||||
cmake \
|
snmp \
|
||||||
tcpdump \
|
sshpass \
|
||||||
snmp \
|
sudo \
|
||||||
python-scapy \
|
tcpdump \
|
||||||
inetutils-ping \
|
telnet \
|
||||||
telnet
|
vim
|
||||||
|
|
||||||
# For JNLP launcher
|
|
||||||
RUN apt-get install -y default-jre
|
|
||||||
|
|
||||||
# For syslog test
|
|
||||||
RUN apt-get install -y rsyslog psmisc
|
|
||||||
|
|
||||||
# Remove cffi 1.5.2, will install 1.10.0 by pip later
|
|
||||||
RUN apt-get purge -y python-cffi python-cffi-backend
|
|
||||||
# Remove pycparser 2.14, will install >=2.17 by pip later
|
|
||||||
RUN apt-get purge -y python-ply python-pycparser
|
|
||||||
|
|
||||||
RUN easy_install pip==20.1.1
|
RUN easy_install pip==20.1.1
|
||||||
|
|
||||||
RUN pip install ipaddr \
|
RUN pip install cffi==1.10.0 \
|
||||||
lxml \
|
|
||||||
netaddr \
|
|
||||||
natsort \
|
|
||||||
six \
|
|
||||||
pexpect \
|
|
||||||
pyasn1==0.1.9 \
|
|
||||||
pysnmp==4.2.5 \
|
|
||||||
jinja2==2.7.2 \
|
|
||||||
cffi==1.10.0 \
|
|
||||||
paramiko==2.7.1 \
|
|
||||||
passlib \
|
|
||||||
ipython==5.4.1 \
|
|
||||||
virtualenv \
|
|
||||||
"cryptography>=2.5" \
|
"cryptography>=2.5" \
|
||||||
"future>=0.16.0" \
|
"future>=0.16.0" \
|
||||||
gitpython \
|
gitpython \
|
||||||
|
ipaddr \
|
||||||
|
ipython==5.4.1 \
|
||||||
|
ixnetwork-restpy==1.0.52 \
|
||||||
|
jinja2==2.7.2 \
|
||||||
jsonpatch \
|
jsonpatch \
|
||||||
|
lxml \
|
||||||
|
natsort \
|
||||||
|
netaddr \
|
||||||
netmiko==2.4.2 \
|
netmiko==2.4.2 \
|
||||||
|
paramiko==2.7.1 \
|
||||||
|
passlib \
|
||||||
|
pexpect \
|
||||||
prettytable \
|
prettytable \
|
||||||
psutil \
|
psutil \
|
||||||
|
pyasn1==0.1.9 \
|
||||||
pycryptodome \
|
pycryptodome \
|
||||||
pyfiglet \
|
pyfiglet \
|
||||||
pylint==1.8.1 \
|
pylint==1.8.1 \
|
||||||
pyro4 \
|
pyro4 \
|
||||||
|
pysnmp==4.2.5 \
|
||||||
pytest-repeat \
|
pytest-repeat \
|
||||||
pytest-xdist==1.28.0 \
|
pytest-xdist==1.28.0 \
|
||||||
pytest==4.6.5 \
|
pytest==4.6.5 \
|
||||||
redis \
|
redis \
|
||||||
requests \
|
requests \
|
||||||
rpyc \
|
rpyc \
|
||||||
|
six \
|
||||||
tabulate \
|
tabulate \
|
||||||
textfsm \
|
textfsm \
|
||||||
ixnetwork-restpy==1.0.52 \
|
virtualenv \
|
||||||
&& git clone https://github.com/p4lang/scapy-vxlan.git \
|
&& git clone https://github.com/p4lang/scapy-vxlan.git \
|
||||||
&& cd scapy-vxlan \
|
&& cd scapy-vxlan \
|
||||||
&& python setup.py install \
|
&& python setup.py install \
|
||||||
@ -179,5 +168,3 @@ RUN ~/lib/azure-cli/bin/python -m pip install azure-keyvault==0.3.7 -U
|
|||||||
# Install Virtual Environment
|
# Install Virtual Environment
|
||||||
RUN python -m virtualenv --system-site-packages env-201811
|
RUN python -m virtualenv --system-site-packages env-201811
|
||||||
RUN env-201811/bin/pip install ansible==2.0.0.2
|
RUN env-201811/bin/pip install ansible==2.0.0.2
|
||||||
|
|
||||||
RUN git clone https://github.com/Azure/sonic-mgmt
|
|
||||||
|
Loading…
Reference in New Issue
Block a user