Ansible repository with playbooks to manage azure objects
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

24 lignes
693 B

  1. FROM python:3.8-alpine
  2. RUN apk update && \
  3. apk add --no-cache --virtual .build-deps make gcc musl-dev python3-dev \
  4. python3 libffi libffi-dev openssl-dev openssh-client cargo vim bash
  5. RUN ls /usr/bin/python3 && ln -s /usr/bin/python3 /usr/bin/python && \
  6. ls /usr/local/bin/python3 && ln -s /usr/local/bin/python3 /usr/bin/python3
  7. WORKDIR /opt/ansible
  8. COPY requirements.txt /opt/ansible
  9. RUN pip3 install --no-cache-dir -r requirements.txt && \
  10. ansible-galaxy collection install paloaltonetworks.panos
  11. RUN apk del .build-deps
  12. COPY . /opt/ansible
  13. RUN find /opt/ansible -type f -exec dos2unix -u {} \;
  14. RUN adduser -S -u 1044 ansible-user
  15. USER ansible-user
  16. CMD ["/bin/bash"]