ksator / junos-automation-apps-dockerized

How to package junos automation tools in a Dockerfile, and automatically publish the Docker image in the docker registery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About this repo:

How to package junos automation tools in a Dockerfile on Github, and to publish the Docker image automatically in the docker registery.

How to do it

Various tools for junos automation (Python libraries, Ansible ...) packaged in a Dockerfile at the root of this repository.

In order to let know Docker hub when you change your repo, enable docker in your github repo settings (integrations & services). The Docker Hub will then pull down your repository and build a docker images using your Dockerfile and push it onto the Docker Hub so that it is available for others to download. When you commit changes to your git Repo the Docker Hub will keep the Docker Repository up to date.

A docker image is automated build and published in the docker registry

How to use it

To download the image from the Docker registry, use this command:

$ docker pull ksator/junos-automation-apps-dockerized

Move to the local directory which contains your scripts and run the container with this command.
Your local scripts will be mounted to /project in the container.

$ docker run -it -v $PWD:/project --name my-container-name ksator/junos-automation-apps-dockerized

Looking for more Junos automation solutions:

https://github.com/ksator?tab=repositories
https://gitlab.com/users/ksator/projects
https://gist.github.com/ksator/

About

How to package junos automation tools in a Dockerfile, and automatically publish the Docker image in the docker registery.

License:MIT License


Languages

Language:Dockerfile 100.0%