-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Image - PyRFC #192
Comments
I did some experiments https://hub.docker.com/r/filaksap/abapops |
Hi Dan, there is no standard docker because users run PyRFC on different Linux platforms and Python versions. Here the one based on Ubuntu and if you search for "docker" in PyRFC and node-rfc issues, more can be found, like: #176 (comment) If you use Linux the build from source is recommended and, as @jfilak mentioned, NWRFC SDK libraries are not included, must be downloaded from SAP Service Portal.
|
The point creating a standard docker image is that users will no longer need to run different GNU/Linux and different PyRFC versions. They would just do "docker run pyrfc ...". Docker images are being used because you can run them anywhere with compatible Linux Kernel - I haven't run into any case of Linux Kernel incompatibility yet. I seriously doubt PyRFC uses Linux Kernel calls directly and in the way that PyRFC would work for example on Ubuntu Kernel but not on Fedora Kernel. The only problem with docker image is NW RFC SDK libraries. I provide the libraries via a bind mount in my image but users can take my image, copy the libraries, create a new image and publish it in their internal Docker registry - then they can use the docker image on whatever Linux/Windows/Mac machine to execute RFC functions. |
Hey Guys thanks for replying, FROM ubuntu Just fine for a run, but i want to decrease the size. Anyone tried? |
Alpine is based on The Due to subtle differences among Linux platforms, the "universal Linux" PyRFC would require the |
Actually I have done some experiments with python:alpine-3.8 and I was able to build pynwrfc If you have some experience with the alpine ldconfig command i would like you to help me |
trying to understand how to use ldd.so / ldconfig on alpine. |
exporting LD_LIBRARY_PATH is not enough? It's cool to have ldconfig in place, but if it does not work out of the box, then why not just using the environment variable. |
What do you mean with using LD_LIBRARY_PATH? |
Actually, the environment variable LD_LIBRARY_PATH must point to a directory where ldd can look up for libraries.
|
okay, and than should i add:
|
Nothing else. The environment variable is used in runtime: |
doesnt work
|
Actually, it worked quite well. The symbol __strdup is from libc and since you have musl on alpine you have no __strdup symbol.
^^ from my Fedora box. |
Yea, i understand that. which cause me to disqualify Alpine |
Just as info, a new tool, eventually helpful in your work: #167 (comment) |
Finally I have successfully created a Docker image of |
Great! f you want to share the working image, you could create the PR, helping other users as well. If published on docker hub, we could add the hyperlink in the README file, in a (new) PyRFC docker folder? The contribution agreement is simplified recently. |
@bsrdjan Well, the image must not include the SAP NWRFC SDK libraries, does it? |
Including the SAP NWRFC SDK :) |
I will share it on docker hub, and let you know |
It must not include SAP NWRFC SDK but for example a COPY statement, copying from local folder to image, or wget/curl from SAP Service Portal ... |
What do you mean, on your image you have locally copied the files. On my image i do it too. |
@Dan-Fishman You can build an image which contains the SDK but you must not publish the image free to download by public because the SDK's license does not allow that. However, you can distribute that image in your company as you wish, just don't publish it any public site as long as it contains the SDK. |
Understood. |
Hey, lets do it 👍🏼, i prepared the image. |
bsrdjan, |
Where did they put the files to upload the image ? |
Hi There,
I'm trying to develop an automations system, and i thought im not the first so why should i invent the wheel?
do you have any pyrfc docker image ready to production?
The text was updated successfully, but these errors were encountered: