Skip to content

Commit

Permalink
Install latest 0.3.11 mitogen for latest images
Browse files Browse the repository at this point in the history
On alpine3.20, debian bookworm and ubuntu 24.04, the latest
mitogen version 0.3.11 is installed.
  • Loading branch information
guenhter committed Oct 2, 2024
1 parent 464d698 commit 44d7040
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Add Ubuntu 24.04
- Add Alpine 3.20
- Support Ansible 10 (Core 2.17)
- Update to Mitogen 0.3.11 for Alpine 3.20, Debian 12 (Bookworm) and Ubuntu 24.04

## v5.0.2

Expand Down
3 changes: 2 additions & 1 deletion ansible-core/alpine320/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ARG ANSIBLE_LINT
ENV ANSIBLE_CORE_VERSION ${ANSIBLE_CORE_VERSION}
ENV ANSIBLE_VERSION ${ANSIBLE_VERSION}
ENV ANSIBLE_LINT ${ANSIBLE_LINT}
ENV MITOGEN_VERSION=0.3.11

# Labels.
LABEL maintainer="[email protected]" \
Expand Down Expand Up @@ -43,7 +44,7 @@ RUN apk --no-cache add \
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 mitogen==${MITOGEN_VERSION} jmespath && \
pip3 install --upgrade pywinrm && \
apk del build-dependencies && \
rm -rf /var/cache/apk/* && \
Expand Down
3 changes: 2 additions & 1 deletion ansible-core/debian-bookworm-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ARG ANSIBLE_LINT
ENV ANSIBLE_CORE_VERSION ${ANSIBLE_CORE_VERSION}
ENV ANSIBLE_VERSION ${ANSIBLE_VERSION}
ENV ANSIBLE_LINT ${ANSIBLE_LINT}
ENV MITOGEN_VERSION=0.3.11

# Labels.
LABEL maintainer="[email protected]" \
Expand All @@ -28,7 +29,7 @@ RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED && \
pip3 install --upgrade pip cffi && \
pip3 install ansible-core==${ANSIBLE_CORE_VERSION} && \
pip3 install ansible==${ANSIBLE_VERSION} ansible-lint==${ANSIBLE_LINT} && \
pip3 install mitogen jmespath && \
pip3 install mitogen==${MITOGEN_VERSION} jmespath && \
pip install --upgrade pywinrm && \
rm -rf /root/.cache/pip

Expand Down
3 changes: 2 additions & 1 deletion ansible-core/debian-bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ARG ANSIBLE_LINT
ENV ANSIBLE_CORE_VERSION ${ANSIBLE_CORE_VERSION}
ENV ANSIBLE_VERSION ${ANSIBLE_VERSION}
ENV ANSIBLE_LINT ${ANSIBLE_LINT}
ENV MITOGEN_VERSION=0.3.11

# Labels.
LABEL maintainer="[email protected]" \
Expand All @@ -28,7 +29,7 @@ RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED && \
pip3 install --upgrade pip cffi && \
pip3 install ansible-core==${ANSIBLE_CORE_VERSION} && \
pip3 install ansible==${ANSIBLE_VERSION} ansible-lint==${ANSIBLE_LINT} && \
pip3 install mitogen jmespath && \
pip3 install mitogen==${MITOGEN_VERSION} jmespath && \
pip install --upgrade pywinrm && \
rm -rf /root/.cache/pip

Expand Down
7 changes: 5 additions & 2 deletions ansible-core/ubuntu2404/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ARG ANSIBLE_LINT
ENV ANSIBLE_CORE_VERSION ${ANSIBLE_CORE_VERSION}
ENV ANSIBLE_VERSION ${ANSIBLE_VERSION}
ENV ANSIBLE_LINT ${ANSIBLE_LINT}
ENV MITOGEN_VERSION=0.3.11
ENV PIPX_BIN_DIR=/usr/local/bin

# Labels.
Expand All @@ -22,13 +23,15 @@ LABEL maintainer="[email protected]" \

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y gnupg2 pipx sshpass git openssh-client && \
apt-get install -y python3 python3-cffi python3-mitogen python3-jmespath && \
apt-get install -y python3 python3-cffi python3-jmespath && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean

RUN pipx install ansible-core==${ANSIBLE_CORE_VERSION} && \
RUN rm -rf /usr/lib/python3.12/EXTERNALLY-MANAGED && \
pipx install ansible-core==${ANSIBLE_CORE_VERSION} && \
pipx install ansible==${ANSIBLE_VERSION} ansible-lint==${ANSIBLE_LINT} && \
pipx install pywinrm --include-deps && \
pip3 install mitogen==${MITOGEN_VERSION} \
rm -rf /root/.cache/pip*

RUN mkdir /ansible && \
Expand Down

0 comments on commit 44d7040

Please sign in to comment.