-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
81 additions
and
6 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 |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
## v5.0.3 | ||
|
||
- Add Ubuntu 24.04 | ||
- Add Alpine 3.20 | ||
- Support Ansible 10 (Core 2.17) | ||
|
||
## v5.0.2 | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# pull base image | ||
FROM alpine:3.20 | ||
|
||
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} | ||
|
||
# Labels. | ||
LABEL maintainer="[email protected]" \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.vcs-ref=$VCS_REF \ | ||
org.label-schema.name="willhallonline/ansible" \ | ||
org.label-schema.description="Ansible inside Docker" \ | ||
org.label-schema.url="https://github.com/willhallonline/docker-ansible" \ | ||
org.label-schema.vcs-url="https://github.com/willhallonline/docker-ansible" \ | ||
org.label-schema.vendor="Will Hall Online" \ | ||
org.label-schema.docker.cmd="docker run --rm -it -v $(pwd):/ansible ~/.ssh/id_rsa:/root/id_rsa willhallonline/ansible" | ||
|
||
RUN apk --no-cache add \ | ||
sudo \ | ||
python3 \ | ||
py3-pip \ | ||
openssl \ | ||
ca-certificates \ | ||
sshpass \ | ||
openssh-client \ | ||
rsync \ | ||
git && \ | ||
apk --no-cache add --virtual build-dependencies \ | ||
python3-dev \ | ||
libffi-dev \ | ||
musl-dev \ | ||
gcc \ | ||
cargo \ | ||
build-base && \ | ||
rm -rf /usr/lib/python3.12/EXTERNALLY-MANAGED && \ | ||
pip3 install --upgrade pip wheel && \ | ||
pip3 install --upgrade cryptography cffi && \ | ||
pip3 install ansible-core==${ANSIBLE_CORE_VERSION} && \ | ||
pip3 install ansible==${ANSIBLE_VERSION} && \ | ||
pip3 install --ignore-installed ansible-lint==${ANSIBLE_LINT} && \ | ||
pip3 install mitogen jmespath && \ | ||
pip3 install --upgrade pywinrm && \ | ||
apk del build-dependencies && \ | ||
rm -rf /var/cache/apk/* && \ | ||
rm -rf /root/.cache/pip && \ | ||
rm -rf /root/.cargo | ||
|
||
RUN mkdir /ansible && \ | ||
mkdir -p /etc/ansible && \ | ||
echo 'localhost' > /etc/ansible/hosts | ||
|
||
WORKDIR /ansible | ||
|
||
CMD [ "ansible-playbook", "--version" ] |