Skip to content

Option to turn off binary file stripping when when using slim: true #326

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

Merged
merged 2 commits into from
Mar 4, 2019
Merged

Conversation

sergeyk
Copy link
Contributor

@sergeyk sergeyk commented Feb 28, 2019

As #318 and #216 - comment note, stripping *.so files can mess things up on Lambda, even when done in Docker.

For example, this is the error you will get if you strip opencv: ImportError: /tmp/sls-py-req/cv2/cv2.cpython-36m-x86_64-linux-gnu.so: ELF load command address/offset not properly aligned

In these cases, it is useful to simply turn off stripping while retaining the other behaviors of slim: true.

@dschep
Copy link
Contributor

dschep commented Mar 4, 2019

LGTM!

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

Successfully merging this pull request may close these issues.

2 participants