-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (22 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.10-buster
ENV DEBIAN_FRONTEND=noninteractive
LABEL maintainer="[email protected]"
ENV TERRAFORM_VERSION="1.1.7"
COPY requirements.txt .
RUN pip install pip --upgrade && \
pip install --no-cache-dir -r requirements.txt
RUN apt update -y && \
apt install -y \
sshpass libxml2-utils openssh-client curl
#COPY roles-requirements.yml .
#RUN ansible-galaxy install -r roles-requirements.yml
RUN curl https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip > terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /bin && \
rm -f terraform_${TERRAFORM_VERSION}_linux_amd64.zip
# Azure CLI
ADD https://raw.githubusercontent.com/ansible-collections/azure/dev/plugins/inventory/azure_rm.py /root/.ansible/plugins/azure_rm.py
RUN chmod +x /root/.ansible/plugins/azure_rm.py
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
WORKDIR /work
ADD auth_azcli.sh .
ENTRYPOINT [ "/bin/bash", "-c"]