Dockerfiles and build script for AWS lambda#3
Dockerfiles and build script for AWS lambda#3zymergen-jringgenberg wants to merge 1 commit intoInformaticsMatters:masterfrom
Conversation
|
@zymergen-jringgenberg I'm happy to accept this PR (thanks for submitting!), but before I do so I thought it best to check whether the 'build boost from source' hack is still needed. My latest centos builds are based on Centos8 which has a suitable version of boost. If you are able to base on Centos8 them we can avoid this nasty hack. |
|
@zymergen-jringgenberg One other thing. You probably want to set the RDBASE environment variable to See rdkit/rdkit#3053 for more details. |
@tdudgeon thanks for checking! as far as I can tell, the most recent version of boost available from the Amazon repo is 1.53 (using etc, etc. The |
OK, that's pretty interesting. I read through the ticket you linked to and I'll need to try this out with some running functions. Since the output of the layer build is a file archive, rather than an image, I'll need to try setting the If that's a requirement for running the Lambda then I'll update the files to include a note to that effect. |
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.
These builds work with
masteras well as the 2020_03 and 2019_09 minor releases of RDKit, using Boost 1.58.0.This layer without NumPy installed was tested along with the AWS-provided SciPy layer, however dependency conflicts were observed once deployed to Lambda. There might be ways around these with a bit more work, but for now NumPy is included.