Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#755 - Install Ansible in the Kogito CI build image #1159

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions apache-nodes/Dockerfile.kogito-ci-build
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -31,6 +34,7 @@ netcat \
libvshadow-utils \
sudo \
wget \
software-properties-common \
# system (END)
# drools (BEGIN)
fontconfig \
Expand Down Expand Up @@ -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
Expand Down