Skip to Content
0
Jun 19, 2020 at 03:13 PM

Docker File into Sap Data Intelligence Cal SAP

470 Views

Hi

I am some problems like return non-zero error.

I create the docker file correcly with the code:

FROM $com.sap.sles.base

RUN groupadd -g 1972 cmddata && useradd -g 1972 -u 1972 -m cmddata
USER 1972:1972
WORKDIR “/home/cmddata”
ENV HOME=/home/cmddata
ENV PATH=”${PATH}:${HOME}/.local/bin”

RUN python3.6 -m pip –no-cache-dir install ‘tensorflow’ –user
RUN python3.6 -m pip –no-cache-dir install ‘numpy’ –user

But when i add the TAGS to the operator and run deploy i have the error non zero

Timestamp,Level,Message,Application,Topic,ID,Function[object Object],ERROR,”Error building docker image: The command ‘/bin/sh -c python3.6 -m pip –no-cache-dir install ‘tensorflow’ –user’ returned a non-zero code: 1″,vflow,container,216246,buildImageCoreDocker[object Object],ERROR,”Docker output:Step 1/6 : FROM registrycaltdc212638478.azurecr.io/vora/vflow-node-d2d4352a0cfc540f9be2ae9685643998bb11e126:com.sap.sles.base—> 18b16da089bcStep 2/6 : RUN python3.6 -m pip –no-cache-dir install ‘tensorflow’ –user—> Running in 85e69bdb8b64Collecting tensorflowDownloading https://files.pythonhosted.org/packages/de/f0/96fb2e0412ae9692dbf400e5b04432885f677ad6241c088ccc5fe7724d69/tensorflow-1.14.0-cp36-cp36m-manylinux1_x86_64.whl (109.2MB)Collecting grpcio>=1.8.6 (from tensorflow)Downloading https://files.pythonhosted.org/packages/f1/23/62d3e82fa4c505f3195315c8a774b2e656b556d174329aa98edb829e48bc/grpcio-1.29.0.tar.gz (19.6MB)Complete output from command python setup.py egg_info:Traceback (most recent call last): File “” ””, line 1, in File “”/tmp/pip-install-cqmenk9p/grpcio/ setup.py””, line 191, in if check_linker_need_libatomic(): File “”/tmp/pip-install-cqmenk9p/grpcio/ setup.py””, line 152, in check_linker_need_libatomic stderr=PIPE) File “”/usr/local/lib/python3.6/subprocess.py””, line 709, in __init__ restore_signals, start_new_session) File “”/usr/local/lib/python3.6/subprocess.py””, line 1344, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: ‘cc’: ‘cc’

Do you have any idea.

I changed commands with thoses:

RUN groupadd -g 1972 vflow && useradd -g 1972 -u 1972 -m vflow

USER 1972:1972

WORKDIR /home/vflow

ENV HOME=/home/vflow

But i get the same result.

I am working with the Cal Sap of Data Intelligence

Thanks,

Best,Sergio