Merge pull request #456 from lboue/patch-3

Upgrading versions
This commit is contained in:
Jeremy Grossmann 2019-09-22 20:05:12 +08:00 committed by GitHub
commit e35597c3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,21 @@
# docker base image for Netmiko, NAPALM, Pyntc, and Ansible # docker base image for Netmiko, NAPALM, Pyntc, and Ansible
FROM ubuntu:xenial FROM ubuntu:bionic
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y --no-install-recommends \ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y --no-install-recommends \
install telnet curl openssh-client nano vim-tiny iputils-ping python build-essential \ install telnet curl openssh-client nano vim-tiny iputils-ping build-essential \
libssl-dev libffi-dev python-pip python3-pip python-setuptools \ libssl-dev libffi-dev python3-pip python3-dev python3-setuptools \
python-dev net-tools python3 software-properties-common \ net-tools python3 software-properties-common \
&& apt-add-repository -y ppa:ansible/ansible-2.6 \ && apt-add-repository -y ppa:ansible/ansible-2.8 \
&& apt-get update && apt-get -y --no-install-recommends install ansible \ && apt-get update && apt-get -y --no-install-recommends install ansible \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& pip install --upgrade pip \ && pip3 install wheel \
&& pip install cryptography netmiko napalm pyntc \ && pip3 install cryptography netmiko napalm pyntc \
&& pip install --upgrade paramiko && mkdir /scripts \ && pip3 install --upgrade paramiko && mkdir /scripts \
&& mkdir /root/.ssh/ \ && mkdir /root/.ssh/ \
&& echo "KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1" > /root/.ssh/config \ && echo "KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1" > /root/.ssh/config \
&& echo "Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr" >> /root/.ssh/config && echo "Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr" >> /root/.ssh/config \
&& chown -R root /root/.ssh/
VOLUME [ "/root","/usr", "/scripts" ] VOLUME [ "/root","/usr", "/scripts" ]
CMD [ "sh", "-c", "cd; exec bash -i" ] CMD [ "sh", "-c", "cd; exec bash -i" ]