Merge pull request #304 from AJNOURI/master

Add persistency to network automation containers (CLI & PyCharm) with additional mapping of /usr
This commit is contained in:
Jeremy Grossmann 2018-01-31 04:01:22 +01:00 committed by GitHub
commit 04ee6df643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y --no-install-rec
&& rm -rf /var/lib/apt/lists/* \
&& pip install --upgrade pip \
&& pip install cryptography netmiko napalm pyntc \
&& pip install --upgrade paramiko
&& pip install --upgrade paramiko && mkdir /scripts
VOLUME [ "/root" ]
VOLUME [ "/root","/usr", "/scripts" ]
CMD [ "sh", "-c", "cd; exec bash -i" ]

View File

@ -53,4 +53,4 @@ ADD pycharm-run /etc/sv/pycharm/run
RUN chmod a+x /etc/sv/pycharm/run
RUN ln -s /etc/sv/pycharm /etc/service
VOLUME /root /scripts
VOLUME ["/root", "/usr/", "/scripts"]