Skip to content
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

shared library paths #1

Open
dazza-codes opened this issue Nov 27, 2020 · 0 comments
Open

shared library paths #1

dazza-codes opened this issue Nov 27, 2020 · 0 comments

Comments

@dazza-codes
Copy link
Owner

dazza-codes commented Nov 27, 2020

Tracking some issues on other projects here:

More refs:

For https://github.com/dazza-codes/aws-lambda-layer-packing/blob/master/layer_create_zip.sh#L108 - this project could hack something to "undo" auditwheel and use the AWS Lambda LD_LIBRARY_PATH.

Is there a way to use conda packaging for a conda-env without too much conda cruft in a way that a .zip package would work OK without conda in the runtime? Try - https://github.com/conda-incubator/conda-press in a build container and extract a .zip archive for a lambda layer?

What are the origins and differences, if any, between lambda docker images and manylinux_2014 (CentOS 6, UBI) images? The short story is that amazonlinux is based on an Ubuntu/Debian OS with apt packaging whereas manylinux* are based on CentOS with yum packaging, so it's tricky to trace the core library versions used and any issues of binary compatibility.

The python manylinux wheels are based on CentOS (maybe RH UBI sometime)

Less than a full operating system, UBI is three things:
- A set of three base images (ubi, ubi-minimal, ubi-init)
- A set of language runtime images (nodejs, ruby, python, php, perl, etc.)
- A set of associated packages in a YUM repository which satisfy common application dependencies

podman pull registry.access.redhat.com/ubi8/ubi
podman pull registry.access.redhat.com/ubi8/ubi-minimal
podman pull registry.access.redhat.com/ubi8/ubi-init

AWS Lambda ENV

AWS_EXECUTION_ENV=AWS_Lambda_python3.7

PWD=/var/task
LAMBDA_TASK_ROOT=/var/task
LAMBDA_RUNTIME_DIR=/var/runtime

PATH=/var/lang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib
PKG_CONFIG_PATH=/var/lang/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant