From 075e6fb2c8f35670efe5708a9ae19f24d4bc5a5c Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Wed, 10 Jan 2024 13:15:07 -0300 Subject: [PATCH] Add ansible to the kogito-ci-image --- apache-nodes/Dockerfile.kogito-ci-build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apache-nodes/Dockerfile.kogito-ci-build b/apache-nodes/Dockerfile.kogito-ci-build index ce45316d9..6c4f59c64 100644 --- a/apache-nodes/Dockerfile.kogito-ci-build +++ b/apache-nodes/Dockerfile.kogito-ci-build @@ -10,6 +10,9 @@ ARG PYTHON_MAJOR_MINOR_VERSION="3.11" # set locale to C.UTF-8 ENV LANG='C.UTF-8' +# set TZ to America/New_York +ENV TZ='America/New_York' + RUN apt update && apt upgrade -y && apt install -y \ # skdman deps (BEGIN) git \ @@ -31,6 +34,7 @@ netcat \ libvshadow-utils \ sudo \ wget \ +software-properties-common \ # system (END) # drools (BEGIN) fontconfig \ @@ -141,6 +145,13 @@ RUN wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest-4.13/o sudo mv ${tmp_dir}/oc /usr/local/bin && \ rm -rf ${tmp_dir} /tmp/openshift-client* +# Install ansible +RUN sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ + echo $TZ | sudo tee /etc/timezone && \ + sudo add-apt-repository --yes --update ppa:ansible/ansible && \ + sudo apt update && \ + sudo apt install -y ansible + # Convenience script to account for using 'alternatives' in some places RUN sudo bash -c 'echo -e "#!/bin/bash\nupdate-alternatives \"\$@\"" > /usr/local/bin/alternatives' \ && sudo chmod +x /usr/local/bin/alternatives