@@ -90,19 +90,19 @@ RUN echo "the HTTP/S protocol is set to $PROTOCOL" && \
9090 echo "the PERFMONPORT port is set to $SERVERPORT" && \
9191 echo "the pmcollector server ip is set to $SERVER" && \
9292 echo "the log will use $LOGPATH"
93-
93+
9494RUN if [ $(expr "$BASE" : '.*python.*' ) -eq 0 ]; then \
95- yum install -y python39 python3-pip; \
96- if [ "$BUILD_ENV" = "build_test " ]; then \
97- python3 -m pip install pip-tools && \
98- python3 -m piptools compile /root/requirements_ubi.in --output-file /root/requirements_ubi9.txt && \
99- echo "Compiled python packages: $(cat /root/requirements_ubi9.txt)" ; fi && \
100- python3 -m pip install -r /root/requirements_ubi9.txt && \
101- echo "Installed python version: $(python3 -V)" && \
102- echo "Installed python packages: $(python3 -m pip list)" ; else \
103- echo "Already using python container as base image. No need to install it." && \
104- python3 -m pip install -r /root/requirements.in && \
105- echo "Installed python packages: $(python3 -m pip list)" ; fi
95+ yum install -y python39 python3-pip; \
96+ if [ "$BUILD_ENV" = "test " ]; then \
97+ python3 -m pip install pip-tools && \
98+ python3 -m piptools compile /root/requirements_ubi.in --output-file /root/requirements_ubi9.txt && \
99+ echo "Compiled python packages: $(cat /root/requirements_ubi9.txt)" ; fi && \
100+ python3 -m pip install -r /root/requirements_ubi9.txt && \
101+ echo "Installed python version: $(python3 -V)" && \
102+ echo "Installed python packages: $(python3 -m pip list)" ; else \
103+ echo "Already using python container as base image. No need to install it." && \
104+ python3 -m pip install -r /root/requirements.in && \
105+ echo "Installed python packages: $(python3 -m pip list)" ; fi
106106
107107USER root
108108
0 commit comments