Code Monkey home page Code Monkey logo

nsx-advanced-load-balancer-tools's Introduction

Overview

avinetworks/avitools docker image

The container is designated to host all the required migration and verification tools needed in the field. Please refer for the Dockerfile for the list of included tools.

docker pull avinetworks/avitools:$VERSION

There is no latest tag, please use the version specific pull, for example: avinetworks/avitools:20.1.3

Usage

Docker image can be consumed using run.sh script under git:avinetworks/avitools/run.sh

$ curl -O https://raw.githubusercontent.com/avinetworks/avitools/master/run.sh
$ chmod a+x run.sh
./run.sh -h
-v string    specify AVI_VERSION, default value: 20.1.3
-c string    specify CMD to execute, in this mode container will be created and destroyed on command run, default value: avitools-list
-d string    specify working directory, where configuration files will exist, default value: /Users/smarunich/GitHub/avitools/scripts/avi
-u           update docker image, i.e. try to pull docker image again
-b           run in background, other words create avitools container and retain it, container can be accessible after script execution, for example as "docker exec -it avitools bash", default value: avitools-list
-n           use host networking instead of docker daemon default network, i.e. docker run --net=host

Using -v flag you can specify the container version, otherwise default value will be assumed.

To show the commands supported by avitools

$ ./run.sh -c avitools-list or ./run.sh or ./run.sh -v 20.1.3 -c avitools-list

To show the commands supported by avitools 20.1.3 version of container

$ ./run.sh -v 20.1.3 -c avitools-list

How to run commands using run.sh

ex. sh run.sh -v <AVI_VERSION> -d <DIR> -c <COMMAND>
$ ./run.sh -c "f5_converter.py -h"
$ ./run.sh -c "f5_converter.py -f <filename>"
$ ./run.sh -v 20.1.3 -d /home/aviuser -c "f5_converter.py -h"
$ ./run.sh -v 20.1.3 -d /home/aviuser -c "f5_converter.py -f <filename>"

To run ansible playbook

$ ./run.sh -c "ansible-playbook <playbook-name> -v"

To run container in background

$ ./run.sh -v 20.1.3 -c bash -d /home/aviuser/workspace -b
$ docker exec -it avitools bash

Docker - "-n" use host networking, supported in both modes (background and foreground/cmd mode).

$ ./run.sh -v 20.1.3 -n -c bash -d /home/aviuser/workspace -b
$ ./run.sh -v 20.1.3 -n -d /home/aviuser -c "f5_converter.py -h"

Optional

Build instructions

cd build
docker build -t avinetworks/avitools:20.1.3 .

How you can use migrationtools docker image

First you need to build a docker image Run the run.sh which is in scripts directory to run avitools on that image

nsx-advanced-load-balancer-tools's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.