Final touches to utility
@@ -26,6 +26,7 @@ RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so
# Disable su for everyone not in the wheel group (no one is in the wheel group)
RUN echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su
+# https://stackoverflow.com/questions/36292317/why-set-visible-now-in-etc-profile
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
@@ -35,16 +36,5 @@ RUN pip install -r /requirements.txt
# Temporary fix to get NAPALM working. Long-term we should convert utility to use python 3
RUN pip install --upgrade netmiko==2.4.2
-# The latest release of JSNAPy as of now was 1.3.2, released in
-# May of 2018. Since then, there have been many fixes, and the main one we care
-# about is the YAML deprecation notices. I will follow up with them and ask why
-# we haven't done a release in so long with many outstanding fixes already in
-# master, but in the meantime, we will clone and check out a commit manually so
-# we can avoid the YAML deprecation notices
-RUN git clone https://github.com/Juniper/jsnapy.git /tmp/jsnapy \
- && cd /tmp/jsnapy \
- && git checkout bb8e02b1a9bd0e981c7d9a18cd1a08f5596cac65 \
- && python setup.py install
-
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
