mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-23 22:52:24 +00:00
19 lines
735 B
Docker
19 lines
735 B
Docker
# docker base image for Netmiko, NAPALM, Pyntc, and Ansible
|
|
|
|
FROM ubuntu:xenial
|
|
|
|
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 \
|
|
libssl-dev libffi-dev python-pip python-setuptools \
|
|
python-dev net-tools python3 software-properties-common \
|
|
&& apt-add-repository -y ppa:ansible/ansible \
|
|
&& apt-get update && apt-get -y --no-install-recommends install ansible \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& pip install --upgrade pip \
|
|
&& pip install cryptography netmiko napalm pyntc \
|
|
&& pip install --upgrade paramiko
|
|
|
|
VOLUME [ "/root" ]
|
|
CMD [ "sh", "-c", "cd; exec bash -i" ]
|
|
|