Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...



Virtulbox must be install
Docker Toolbox on windows 10


cd c:/


Code Block
titlemodified dockerfile
collapsetrue
FROM ubuntu:xenial as build

RUN apt-get update \
	&& apt-get install -y python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev git \
	&& apt-get --no-install-recommends install -y virtualbox-guest-utils \
	&& apt-get install -y python-paramiko
RUN python -m pip uninstall pip setuptools wheel\
	&& python -m pip install --upgrade pip \
	&& python -m pip install --upgrade setuptools wheel
RUN pip install --upgrade junos-eznc \
	&& pip install urwid \
	&& pip install enum \
#	&& git clone https://github.com/Juniper/py-space-platform.git \
#	&& pip install ./py-space-platform \
#	&& pip list | egrep "setup|wh|pip|junos-eznc|space" \
    && pip install requests \
    && pip install git+https://github.com/Juniper/py-space-platform.git@v1.0.0
RUN git clone https://github.com/Juniper/ChassisInfoFetcher.git


git clone

Building the Docker image
docker build -t cif - < Dockerfile

Running the application inside a container
docker run -it cif




cd ChassisInfoFetcher/CIF/


echo "172.30.95.174,Netbox,Netbox,22" > hosts.csv

python alpp.py