You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GAUDISW-244821] Modify ubi docker to support both internal and external builds
- parametrize all that's different internally and externally,
e.g. locations of RPM packages, pypi indexes
- add libomp package which is now required during pytorch modules installation
- add support for RHEL 9.4 builds, handle minor differences between 9.4 and 9.6
Signed-off-by: Michal Muszynski <mmuszynski@habana.ai>
# Setup Habana repository and install Habana packages
79
-
RUN printf "[habanalabs]\\nname=Habana RH9 Linux repo\\nbaseurl=https://${ARTIFACTORY_URL}/artifactory/rhel/9/9.6\\ngpgkey=https://${ARTIFACTORY_URL}/artifactory/rhel/9/9.6/repodata/repomd.xml.key\\ngpgcheck=1\\n" > /etc/yum.repos.d/habanalabs.repo && \
90
+
RUN printf "[habanalabs]\\nname=Habana RH9 Linux repo\\nbaseurl=https://${ARTIFACTORY_URL}/artifactory/${HABANA_RPM_REPO_PATH}\\ngpgkey=https://${ARTIFACTORY_URL}/artifactory/${HABANA_RPM_REPO_PATH}/repodata/repomd.xml.key\\ngpgcheck=1\\n" > /etc/yum.repos.d/habanalabs.repo && \
80
91
echo "=== Content of habanalabs.repo ===" && \
81
92
cat /etc/yum.repos.d/habanalabs.repo && \
82
93
echo "=== End of habanalabs.repo ===" && \
@@ -95,7 +106,7 @@ RUN printf "[habanalabs]\\nname=Habana RH9 Linux repo\\nbaseurl=https://${ARTIFA
95
106
rm -f /etc/yum.repos.d/habanalabs.repo
96
107
97
108
# Install Habana media loader and configure Python path
98
-
RUN pip install habana-media-loader=="${SYNAPSE_VERSION}"."${SYNAPSE_REVISION}" && \
109
+
RUN pip install habana-media-loader=="${SYNAPSE_VERSION}"."${SYNAPSE_REVISION}" --extra-index-url ${PYPI_INDEX_URL} && \
0 commit comments