@@ -90,19 +90,19 @@ RUN echo "the HTTP/S protocol is set to $PROTOCOL" && \
90
90
echo "the PERFMONPORT port is set to $SERVERPORT" && \
91
91
echo "the pmcollector server ip is set to $SERVER" && \
92
92
echo "the log will use $LOGPATH"
93
-
93
+
94
94
RUN 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
106
106
107
107
USER root
108
108
0 commit comments