Benutzer-Werkzeuge

Webseiten-Werkzeuge


ne:docker:dockerfiles

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
ne:docker:dockerfiles [2023/09/02 07:02] adminne:docker:dockerfiles [2023/09/02 14:58] (aktuell) admin
Zeile 3: Zeile 3:
 <cli> <cli>
 FROM alpine:latest FROM alpine:latest
-ENV ANSIBLE_VERSION 2.9.17+ENV ANSIBLE_VERSION 2.15.3
  
-RUN apk update && apk upgrade +RUN apk update; \
-RUN apt-get update; \+
     apk add gcc python3; \     apk add gcc python3; \
     apk add python3-pip; \     apk add python3-pip; \
-    apk add cmd:pip3 \ #  pull whatever package provides the pip3 command.  +    apk add cmd:pip3 \ # pull whatever package provides the pip3 command.  
-    apk add openssh-client +    apk add openssh-client; \ 
-    apt-get clean all+    apk cache clean 
 +     
 +# add Cisco Algorithms to ssh_config 
 +RUN echo 'KexAlgorithms diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1' >> /etc/ssh/ssh_config 
 +RUN echo 'HostKeyAlgorithms ssh-rsa' >> /etc/ssh/ssh_config 
 + 
 +# install ansible and pyats
 RUN pip3 install --upgrade pip; \ RUN pip3 install --upgrade pip; \
     pip3 install "ansible==${ANSIBLE_VERSION}"; \     pip3 install "ansible==${ANSIBLE_VERSION}"; \
     pip3 install ansible     pip3 install ansible
 +RUN pip3 install pyats
 </cli> </cli>
  
ne/docker/dockerfiles.1693638123.txt.gz · Zuletzt geändert: 2023/09/02 07:02 von admin