2017-06-27 17:16:10 +00:00
|
|
|
# docker base image for Netmiko, NAPALM, Pyntc, and Ansible
|
|
|
|
|
2019-09-22 11:59:41 +00:00
|
|
|
FROM ubuntu:bionic
|
2017-06-27 17:16:10 +00:00
|
|
|
|
2017-07-19 18:14:33 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y --no-install-recommends \
|
2019-09-22 11:59:41 +00:00
|
|
|
install telnet curl openssh-client nano vim-tiny iputils-ping build-essential \
|
|
|
|
libssl-dev libffi-dev python3-pip python3-dev python3-setuptools \
|
|
|
|
net-tools python3 software-properties-common \
|
|
|
|
&& apt-add-repository -y ppa:ansible/ansible-2.8 \
|
2017-07-19 18:22:28 +00:00
|
|
|
&& apt-get update && apt-get -y --no-install-recommends install ansible \
|
2017-06-27 17:16:10 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2021-09-22 09:56:14 +00:00
|
|
|
&& pip3 install --no-cache-dir wheel \
|
|
|
|
&& pip3 install --no-cache-dir cryptography netmiko napalm pyntc \
|
|
|
|
&& pip3 install --no-cache-dir --upgrade paramiko && mkdir /scripts \
|
2018-03-15 19:55:41 +00:00
|
|
|
&& mkdir /root/.ssh/ \
|
2018-03-15 18:17:45 +00:00
|
|
|
&& 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 \
|
2019-09-22 11:59:41 +00:00
|
|
|
&& echo "Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr" >> /root/.ssh/config \
|
|
|
|
&& chown -R root /root/.ssh/
|
2017-06-27 17:16:10 +00:00
|
|
|
|
2018-01-31 02:27:37 +00:00
|
|
|
VOLUME [ "/root","/usr", "/scripts" ]
|
2017-06-27 17:16:10 +00:00
|
|
|
CMD [ "sh", "-c", "cd; exec bash -i" ]
|
|
|
|
|