ne:docker:dockerfiles
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ne:docker:dockerfiles [2023/08/31 05:07] – angelegt admin | ne:docker:dockerfiles [2023/09/02 14:58] (aktuell) – admin | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| <cli> | <cli> | ||
| FROM alpine: | FROM alpine: | ||
| - | ENV ANSIBLE_VERSION 2.9.17 | + | ENV ANSIBLE_VERSION 2.15.3 |
| - | RUN apk update && apk upgrade | + | RUN apk update; \ |
| - | RUN apt-get | + | |
| 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 cache clean | ||
| + | |||
| + | # add Cisco Algorithms to ssh_config | ||
| + | RUN echo ' | ||
| + | RUN echo ' | ||
| + | |||
| + | # install ansible and pyats | ||
| RUN pip3 install --upgrade pip; \ | RUN pip3 install --upgrade pip; \ | ||
| pip3 install " | pip3 install " | ||
| pip3 install ansible | pip3 install ansible | ||
| + | RUN pip3 install pyats | ||
| </ | </ | ||
| <code bash> | <code bash> | ||
| docker build -t ansible:2. . | docker build -t ansible:2. . | ||
| + | </ | ||
| + | |||
| + | Restart a stopped container | ||
| + | <code bash> | ||
| + | docker restart < | ||
| </ | </ | ||
ne/docker/dockerfiles.1693458432.txt.gz · Zuletzt geändert: von admin
