From 94caa64f2bb21e02daa8ce5b908a53157dc39ff9 Mon Sep 17 00:00:00 2001
From: Christian Berendt <berendt@osism.tech>
Date: Wed, 19 Jun 2024 17:29:52 +0200
Subject: [PATCH] Add mitogen plugin (#16)

Signed-off-by: Christian Berendt <berendt@osism.tech>
---
 Containerfile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Containerfile b/Containerfile
index 0445817..14786cc 100644
--- a/Containerfile
+++ b/Containerfile
@@ -18,6 +18,8 @@ COPY --link files/ara.env /ansible/ara.env
 COPY --link files/scripts/* /
 COPY --link files/src /src
 
+ADD https://github.com/mitogen-hq/mitogen/archive/refs/tags/v0.3.7.tar.gz /mitogen.tar.gz
+
 SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 
 # hadolint ignore=DL3003
@@ -70,6 +72,12 @@ mkdir -p \
   /interface \
   /share
 
+# install mitogen ansible plugin
+mkdir -p /usr/share/mitogen
+tar xzf /mitogen.tar.gz --strip-components=1 -C /usr/share/mitogen
+rm -rf /usr/share/mitogen/{tests,docs,.ci,.lgtm.yml,.travis.yml}
+rm /mitogen.tar.gz
+
 # install helm
 curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | tee /usr/share/keyrings/helm.gpg > /dev/null
 echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list