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 \
|
|
|
|
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 ansible \
|
2017-06-27 17:16:10 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2017-06-27 17:30:14 +00:00
|
|
|
&& pip install --upgrade pip \
|
2017-06-27 17:16:10 +00:00
|
|
|
&& pip install cryptography netmiko napalm pyntc
|
|
|
|
|
|
|
|
VOLUME [ "/root" ]
|
|
|
|
CMD [ "sh", "-c", "cd; exec bash -i" ]
|
|
|
|
|