docker-rdkit icon indicating copy to clipboard operation
docker-rdkit copied to clipboard

Python-based builds for AWS Lambda Layers

Open zymergen-jringgenberg opened this issue 6 years ago • 1 comments

These new scripts use the current two-container strategy to build RDKit and assemble an AWS Lambda Layer as a deployable zip file. As the Lambda environment is CentOS-like, the method for building Boost from source is reused here as well.

Note: these builds currently work with the 2018_09 release of RDKit. Subsequent releases of RDKit do not support Python 2.7 in any case.

The Python 2.7 layer can be used in conjunction with the AWS-provided SciPy layer, while the Python 3.6 layer packages NumPy because of dependency conflicts once deployed to Lambda. There might be ways around these with a bit more work.

zymergen-jringgenberg avatar May 08 '19 16:05 zymergen-jringgenberg

Thanks for the comments! Good catch with the cartridge patching step - I've stripped that out of both files.

And that makes sense about doing this on the release branches - whatever you prefer is fine. I hadn't had time yet to try fixing the Python 3.6 build to work with the March release, but I might have a chance later this week. Obviously the Python 2.7 build won't work with current and future releases.

I'll put these changes together against the Release_2019_03 and push another PR shortly. Cheers!

zymergen-jringgenberg avatar May 21 '19 00:05 zymergen-jringgenberg