redhat-sap / sap-commerce-operator

This is the kubernetes operator for SAP Commerce aka SAP C/4HANA aka SAP Hybris.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update base image to include python and bzip2 dependencies

tejones opened this issue · comments

Today the ubi8 base image used by the Docker layer does not offer a Python or bzip2 modules in it. The usage of the Operator base image to create a special kind of SAP Hybris instance called as Backoffice (only one such instance exists in a SAP Hybris node cluster) is not able to complete setup. The ANT npminstall requires python and bzip2 as a dependency.

            Please add the below highlighted changes.

RUN yum install -y /tmp/$SAPMACHINE_FILE_NAME && \

rm /tmp/$SAPMACHINE_FILE_NAME && \

yum install -y python39 && \

ln -s /usr/bin/python3 /usr/bin/python && \

yum install -y bzip2 && \

cp -R $HYBRIS_HOME/bin/platform/resources/configtemplates/production $HYBRIS_HOME/config && \

useradd -u 1001 -r -g 0 -d $HYBRIS_HOME -s /sbin/nologin -c "Hybris User" hybris && \

chmod -R g+rwX $HYBRIS_HOME && \

chown -R 1001:root $HYBRIS_HOME