-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Think-Cube/patch-2
Patch 2
- Loading branch information
Showing
3 changed files
with
44 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,30 @@ | ||
FROM debian:12 | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y python3-pip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN pip install pip --upgrade | ||
RUN pip install ansible | ||
ARG ANSIBLE_CORE_VERSION | ||
ARG ANSIBLE_VERSION | ||
ARG ANSIBLE_LINT | ||
ENV ANSIBLE_CORE_VERSION ${ANSIBLE_CORE_VERSION} | ||
ENV ANSIBLE_VERSION ${ANSIBLE_VERSION} | ||
ENV ANSIBLE_LINT ${ANSIBLE_LINT} | ||
|
||
RUN apt-get update -y && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
sshpass | ||
LABEL maintainer="contact@thinkcube.dev" | ||
|
||
WORKDIR /work | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
apt-get install -y gnupg2 python3-pip sshpass git openssh-client && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
apt-get clean | ||
|
||
RUN python3 -m pip install --upgrade pip cffi && \ | ||
pip3 install ansible-core==${ANSIBLE_CORE_VERSION} && \ | ||
pip3 install ansible==${ANSIBLE_VERSION} ansible-lint==${ANSIBLE_LINT} && \ | ||
pip3 install mitogen jmespath && \ | ||
pip install --upgrade pywinrm && \ | ||
rm -rf /root/.cache/pip | ||
|
||
RUN mkdir /ansible && \ | ||
mkdir -p /etc/ansible && \ | ||
echo 'localhost' > /etc/ansible/hosts | ||
|
||
WORKDIR /ansible | ||
|
||
CMD [ "ansible-playbook", "--version" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters