Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Make it work with old openssl on lambda #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ serde = "1.0"
serde_json = "1.0"
cpython = { version = "0.1", default-features = false }
cpython-json = { version = "0.2", default-features = false }
python3-sys = { version = "0.1.3", features = ["python-3-4"], optional = true }

[features]
default = ["cpython/python3-sys"]
4 changes: 1 addition & 3 deletions builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM amazonlinux:latest
FROM lambci/lambda:build-python3.6
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
RUN yum install -y bzip2-devel gcc gcc-c++ git openssl-devel python27-devel python36-devel readline-devel sqlite-devel zip \
&& yum clean all
ADD build.sh /usr/local/bin/
VOLUME ["/code"]
WORKDIR /code
Expand Down
4 changes: 2 additions & 2 deletions builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ The `Dockerfile` and `build.sh` script here help you build Lambda functions agai
It's automatically built on Docker Hub as [ilianaw/crowbar-builder](https://hub.docker.com/r/ilianaw/crowbar-builder/) and can be invoked like this from your source tree:

```bash
docker run --rm -v $(pwd):/code:ro ilianaw/crowbar-builder > lambda.zip
docker run --rm -v $(pwd):/code:ro -e CARGO_FLAGS="--features crowbar/python3-sys" ilianaw/crowbar-builder > lambda.zip
```

If you need extra packages, add them as arguments:

```bash
docker run --rm -v $(pwd):/code:ro ilianaw/crowbar-builder openssl-devel > lambda.zip
docker run --rm -v $(pwd):/code:ro -e CARGO_FLAGS="--features crowbar/python3-sys" ilianaw/crowbar-builder openssl-devel > lambda.zip
```