Merge pull request #722 from xander-petty/pyats

Created docker image for running pyATS in GNS3
This commit is contained in:
Jeremy Grossmann 2023-01-06 20:38:20 +05:45 committed by GitHub
commit 03e57c7ca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{
"appliance_id": "d9ce131e-ecdc-49d2-be7d-d883d3919a06",
"name": "Cisco PyATS",
"category": "guest",
"description": "pyATS is an end-to-end DevOps automation ecosystem. Agnostic by design, pyATS enable network engineers to automate their day-to-day DevOps activities, perform stateful validation of their device operational status, build a safety-net of scalable, data-driven and reusable tests around their network, and visualize everything in a modern, easy to use dashboard.",
"vendor_name": "Cisco",
"vendor_url": "https://cisco.com",
"product_name": "PyATS",
"product_url": "https://developer.cisco.com/pyats/",
"registry_version": 3,
"status": "stable",
"maintainer": "Xander Petty",
"maintainer_email": "Xander.Petty@protonmail.com",
"docker": {
"adapters": 1,
"image": "gns3/pyats:latest",
"console_type": "telnet"
}
}

18
docker/pyats/Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM ubuntu:latest
WORKDIR /pyats
RUN apt update
RUN apt install -y nano
RUN apt install -y net-tools
RUN apt install -y openssh-client
RUN echo KexAlgorithms diffie-hellman-group14-sha1 >> /etc/ssh/ssh_config
RUN echo HostKeyAlgorithms ssh-rsa >> /etc/ssh/ssh_config
RUN apt install -y python3
RUN apt install -y python3-pip
RUN apt install -y traceroute
RUN apt install -y iputils-ping
RUN python3 -m pip install --upgrade pip wheel setuptools
RUN python3 -m pip install "pyats[full]"
ENTRYPOINT [ "/bin/bash" ]