From 99bd7911ca8a3fd60623a39e77be247d077c6c30 Mon Sep 17 00:00:00 2001 From: Russ Savage Date: Tue, 17 Aug 2021 23:09:02 -0700 Subject: [PATCH] fix: ensuring aws lambda compatible zip (#312) --- CHANGELOG.md | 1 + docker/aws_lambda_layer/Dockerfile | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df9dbe65..af689185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ 1. [#290](https://github.com/influxdata/influxdb-client-python/pull/290): `Threshold` domain models mapping 1. [#290](https://github.com/influxdata/influxdb-client-python/pull/290): `DashboardService` responses types 1. [#303](https://github.com/influxdata/influxdb-client-python/pull/303): Backslash escaping in serialization to Line protocol +1. [#312](https://github.com/influxdata/influxdb-client-python/pull/312): Zip structure for AWS Lambda ## 1.19.0 [2021-07-09] diff --git a/docker/aws_lambda_layer/Dockerfile b/docker/aws_lambda_layer/Dockerfile index 6bda2d72..4cfb3037 100644 --- a/docker/aws_lambda_layer/Dockerfile +++ b/docker/aws_lambda_layer/Dockerfile @@ -11,5 +11,6 @@ RUN source lambda/bin/activate # Python dependencies to be included in output zip file: RUN python3.8 -m pip install --no-cache-dir influxdb-client[ciso] -t /install/python # Create zip file -RUN zip -r /install/python.zip python/ -VOLUME ["/install"] \ No newline at end of file +WORKDIR /install/python +RUN zip -r ../python.zip . +VOLUME ["/install"]