gns3-registry/docker/network_automation/Dockerfile

19 lines
751 B
Docker
Raw Normal View History

2017-06-27 17:16:10 +00:00
# docker base image for Netmiko, NAPALM, Pyntc, and Ansible
FROM ubuntu:xenial
2017-07-19 18:14:33 +00:00
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 \
2018-01-20 03:58:01 +00:00
libssl-dev libffi-dev python-pip python3-pip python-setuptools \
2017-07-19 18:14:33 +00:00
python-dev net-tools python3 software-properties-common \
2018-01-20 03:58:01 +00:00
&& apt-add-repository -y ppa:ansible/ansible-2.4 \
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/* \
&& pip install --upgrade pip \
2017-08-20 18:51:34 +00:00
&& pip install cryptography netmiko napalm pyntc \
&& pip install --upgrade paramiko
2017-06-27 17:16:10 +00:00
VOLUME [ "/root" ]
CMD [ "sh", "-c", "cd; exec bash -i" ]