You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by js...@apache.org on 2023/11/13 09:00:51 UTC

(incubator-kie-kogito-pipelines) branch ubuntu-image updated: replace alternatives alias with script

This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch ubuntu-image
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git


The following commit(s) were added to refs/heads/ubuntu-image by this push:
     new 5164fdd3 replace alternatives alias with script
5164fdd3 is described below

commit 5164fdd347caba11ff608e2710ee73ac584d99ed
Author: jstastny-cz <ja...@ibm.com>
AuthorDate: Mon Nov 13 10:00:29 2023 +0100

    replace alternatives alias with script
---
 apache-nodes/Dockerfile.kogito-ci-build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/apache-nodes/Dockerfile.kogito-ci-build b/apache-nodes/Dockerfile.kogito-ci-build
index ce30ba23..1c94ab50 100644
--- a/apache-nodes/Dockerfile.kogito-ci-build
+++ b/apache-nodes/Dockerfile.kogito-ci-build
@@ -131,8 +131,9 @@ 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*
 
-# Bash aliases
-RUN echo -e "\nalias alternatives='update-alternatives'" >> .bashrc
+# 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
 
 ENV HOME="/home/nonrootuser/"
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org