gns3-registry/docker/network_automation/Dockerfile
lboue e2c1899253
Upgrading versions
- Ubuntu 18.04 LTS
- Ansible 2.8
2019-09-22 13:59:41 +02:00

23 lines
1.1 KiB
Docker

# docker base image for Netmiko, NAPALM, Pyntc, and Ansible
FROM ubuntu:bionic
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y --no-install-recommends \
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 \
&& apt-get update && apt-get -y --no-install-recommends install ansible \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install wheel \
&& pip3 install cryptography netmiko napalm pyntc \
&& pip3 install --upgrade paramiko && mkdir /scripts \
&& 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 "Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr" >> /root/.ssh/config \
&& chown -R root /root/.ssh/
VOLUME [ "/root","/usr", "/scripts" ]
CMD [ "sh", "-c", "cd; exec bash -i" ]