Sign inSign up

networktocode/netdevops

By networktocode

Updated almost 8 years ago

Swiss Army knife container for network automation purposes

Image
0

212

networktocode/netdevops repository overview

CentOS Linux based container image that acts as a swiss army knife of network automation tools

Executing this container

run a container instance in the background

this command will:

  • name your container "netdevops"
  • name the operating system inside the container as "netdevos"
  • mount your current directory within the container at /home/

docker run -itd --name netdevops -h netdevops -v $PWD:/home packetferret/netdevops:latest

check the status of your running containers

docker ps

validate the file directory was mounted within your container

docker exec -it netdevops ls

execute a python script from your container

docker exec -it netdevops python junos.py

execute an Ansible playbook from host

docker exec -it netdevops ansible-playbook bind_provision.yml

connect to the container

docker exec -it netdevops /bin/bash

run your standard commands from here
  • ls
  • python /Documents/automation/python/test1.py
  • ansible-playbook bind_provision.yml
  • exit
stop you running contianer
identify your running containers

docker ps

stop the container

docker stop NAME_OF_YOUR_CONTAINER

destroy your container
identify your stopped container

docker ps -a

delete the stopped container

docker rm NAME_OF_YOUR_CONTAINER

Information about the container image

Python Versions available:

[root@netdevops home]# python --version
Python 2.7.5
[root@netdevops home]# python36 --version
Python 3.6.6

Python packages installed:

ansible==2.7.5
Babel==0.9.6
backports.ssl-match-hostname==3.5.0.1
bcrypt==3.1.5
certifi==2018.11.29
cffi==1.11.5
chardet==3.0.4
cryptography==1.7.2
ecdsa==0.13
enum34==1.0.4
future==0.17.1
httplib2==0.9.2
idna==2.8
iniparse==0.4
ipaddress==1.0.16
Jinja2==2.7.2
junos-eznc==2.2.0
kitchen==1.1.1
lxml==4.2.5
MarkupSafe==0.11
napalm==2.3.3
napalm-ansible==0.10.0
ncclient==0.6.3
netaddr==0.7.19
netmiko==2.3.0
pan-python==0.13.0
paramiko==2.4.2
ply==3.4
pyasn1==0.1.9
pycparser==2.14
pycrypto==2.6.1
pycurl==7.19.0
pyeapi==0.8.2
pygobject==3.22.0
pygpgme==0.3
pyIOSXR==0.53
pyliblzma==0.5.3
PyNaCl==1.3.0
pynxos==0.0.3
pyserial==3.4
python-keyczar==0.71rc0
pyxattr==0.5.1
PyYAML==3.10
requests==2.21.0
scp==0.13.0
selectors2==2.0.1
six==1.9.0
textfsm==0.4.1
urlgrabber==3.10
urllib3==1.24.1
yum-metadata-parser==1.1.4

Salt Stack was removed from this project is it has several older dependencies that conflict with other packages; please pull networktocode/netdevop:salt instead

Tag summary

Content type

Image

Digest

Size

194.7 MB

Last updated

almost 8 years ago

docker pull networktocode/netdevops