Skip to content

Commit 99bd791

Browse files
authored
fix: ensuring aws lambda compatible zip (#312)
1 parent f455a87 commit 99bd791

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1. [#290](https://github.com/influxdata/influxdb-client-python/pull/290): `Threshold` domain models mapping
1515
1. [#290](https://github.com/influxdata/influxdb-client-python/pull/290): `DashboardService` responses types
1616
1. [#303](https://github.com/influxdata/influxdb-client-python/pull/303): Backslash escaping in serialization to Line protocol
17+
1. [#312](https://github.com/influxdata/influxdb-client-python/pull/312): Zip structure for AWS Lambda
1718

1819
## 1.19.0 [2021-07-09]
1920

Diff for: docker/aws_lambda_layer/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ RUN source lambda/bin/activate
1111
# Python dependencies to be included in output zip file:
1212
RUN python3.8 -m pip install --no-cache-dir influxdb-client[ciso] -t /install/python
1313
# Create zip file
14-
RUN zip -r /install/python.zip python/
15-
VOLUME ["/install"]
14+
WORKDIR /install/python
15+
RUN zip -r ../python.zip .
16+
VOLUME ["/install"]

0 commit comments

Comments
 (0)