-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 1.02 KB
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
32
33
34
35
36
37
38
39
40
FROM ubuntu:25.10
ARG ANSIBLE_CORE_VERSION=2.19.3
ARG ANSIBLE_VERSION=12.1.0
ARG ANSIBLE_LINT=6.11.0
ENV ANSIBLE_CORE_VERSION=${ANSIBLE_CORE_VERSION} \
ANSIBLE_VERSION=${ANSIBLE_VERSION} \
ANSIBLE_LINT=${ANSIBLE_LINT}
LABEL maintainer="contact@thinkcube.dev"
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-venv \
python3-pip \
gnupg2 \
sshpass \
git \
openssh-client && \
rm -rf /var/lib/apt/lists/*
RUN python3 -m venv /opt/ansible-env && \
/opt/ansible-env/bin/pip install --upgrade pip cffi && \
/opt/ansible-env/bin/pip install \
"ansible-core==${ANSIBLE_CORE_VERSION}" \
"ansible==${ANSIBLE_VERSION}" \
"ansible-lint==${ANSIBLE_LINT}" \
mitogen jmespath pywinrm && \
rm -rf /root/.cache/pip
ENV PATH="/opt/ansible-env/bin:$PATH"
RUN mkdir /ansible && \
mkdir -p /etc/ansible && \
echo 'localhost' > /etc/ansible/hosts
WORKDIR /ansible
CMD ["ansible-playbook", "--version"]