This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch radtriste-fix-pipelines
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/radtriste-fix-pipelines by
this push:
new d43cc151 fix python libs for kogito-images
d43cc151 is described below
commit d43cc1513bd4dceb809a43652dd108dfac2d6a52
Author: jstastny-cz <[email protected]>
AuthorDate: Mon Nov 13 18:07:12 2023 +0100
fix python libs for kogito-images
---
apache-nodes/Dockerfile.kogito-ci-build | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/apache-nodes/Dockerfile.kogito-ci-build
b/apache-nodes/Dockerfile.kogito-ci-build
index b7741ede..240f9cf3 100644
--- a/apache-nodes/Dockerfile.kogito-ci-build
+++ b/apache-nodes/Dockerfile.kogito-ci-build
@@ -52,10 +52,6 @@ libasound2 \
&& apt clean
# Cypress dependencies install (END)
-RUN sudo update-alternatives --install /usr/local/bin/python python $(which
python${PYTHON_MAJOR_MINOR_VERSION}) 1 && \
- sudo update-alternatives --install /usr/local/bin/python3 python3 $(which
python${PYTHON_MAJOR_MINOR_VERSION}) 1 && \
- sudo update-alternatives --install /usr/local/bin/pip pip $(which
pip${PYTHON_MAJOR_VERSION}) 1
-
RUN groupadd -g 910 nonrootuser && useradd -u 910 -g 910 -s /bin/bash -m
nonrootuser && \
echo "nonrootuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
@@ -66,6 +62,16 @@ RUN groupadd docker && \
USER nonrootuser
+# Install pip of given version (BEGIN)
+RUN curl -sS https://bootstrap.pypa.io/get-pip.py |
python${PYTHON_MAJOR_MINOR_VERSION}
+# Install pip of given version (END)
+
+RUN sudo update-alternatives --install /usr/local/bin/python python $(which
python${PYTHON_MAJOR_MINOR_VERSION}) 1 && \
+ sudo update-alternatives --install /usr/local/bin/python3 python3 $(which
python${PYTHON_MAJOR_MINOR_VERSION}) 1 && \
+ sudo update-alternatives --install /usr/local/bin/pip pip
~/.local/bin/pip${PYTHON_MAJOR_MINOR_VERSION} -1 && \
+ sudo update-alternatives --install /usr/local/bin/pip${PYTHON_MAJOR_VERSION}
pip${PYTHON_MAJOR_VERSION} ~/.local/bin/pip${PYTHON_MAJOR_MINOR_VERSION} -1 && \
+ sudo update-alternatives --install
/usr/local/bin/pip${PYTHON_MAJOR_MINOR_VERSION}
pip${PYTHON_MAJOR_MINOR_VERSION} ~/.local/bin/pip${PYTHON_MAJOR_MINOR_VERSION}
-1
+
RUN curl -s "https://get.sdkman.io" | bash && \
source "$HOME/.sdkman/bin/sdkman-init.sh" && \
sdk install java ${SDKMAN_JAVA} && \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]