SAP / PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
http://sap.github.io/PyRFC
Apache License 2.0
515 stars 141 forks source link

Unable to install PyRFC and include sapnwrfc.h on Docker #279

Closed bp-brendan-quinn closed 1 year ago

bp-brendan-quinn commented 2 years ago

Describe the bug PyRFC is unable to detect SDK files on Docker

To Reproduce Describe the steps to reproduce the behavior, including test script.

FROM python:3.8-slim-buster

WORKDIR /usr/src/app
COPY scripts/entrypoint.py ./
COPY ./scripts/nwrfcsdk/* /usr/local/sap/nwrfcsdk/

ENV SAPNWRFC_HOME = /usr/local/sap/nwrfcsdk/
ENV NWRFCSDK_INCLUDE = /usr/local/sap/nwrfcsdk/include/
ENV NWRFCSDK_LIBS = /usr/local/sap/nwrfcsdk/lib/

WORKDIR /usr/sap
COPY . /usr/sap
WORKDIR /usr/local/sap/nwrfcsdk/
ENV PATH="${PATH}:/usr/sap/app/nwrfcsdk/lib"

RUN pip install pandas
RUN pip install cython
RUN pip install Cmake
RUN pip install pyarrow
RUN pip install sphinx
RUN pip install ipython
RUN pip install pytest
RUN pip install wheel
RUN pip install pyrfc

Environment

bp-brendan-quinn commented 2 years ago

Capture

bsrdjan commented 2 years ago

Environment path is not enough to register shared libraries on Linux. Please check

bsrdjan commented 1 year ago

Please re-open if needed