Skip to content

Commit c548e39

Browse files
committed
update docs [skip ci]
1 parent ace7e26 commit c548e39

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# GDAL based docker-lambda
22

33
<p align="center">
4-
<img src="" style="max-width: 800px;" alt="docker-lambda"></a>
4+
<img src="https://user-images.githubusercontent.com/10407788/95621320-7b226080-0a3f-11eb-8194-4b55a5555836.png" style="max-width: 800px;" alt="docker-lambda"></a>
55
</p>
66
<p align="center">
77
<em>AWS lambda (Amazonlinux) like docker images and lambda layer with GDAL.</em>
@@ -81,3 +81,21 @@ layer.zip
8181
|___ lib/ # Shared libraries (GDAL, PROJ, GEOS...)
8282
|___ share/ # GDAL/PROJ data directories
8383
```
84+
85+
## AWS Lambda config
86+
87+
When using lambgeo layer you **HAVE TO** set GDAL_DATA and PROJ_LIB environment variable.
88+
89+
- When using lambgeo gdal layer
90+
91+
- **GDAL_DATA:** /opt/share/gdal
92+
- **PROJ_LIB:** /opt/share/proj
93+
94+
- If you create a package using the gdalX.X docker image.
95+
96+
- **GDAL_DATA:** /var/task/share/gdal
97+
- **PROJ_LIB:** /var/task/share/proj
98+
99+
### Other variable
100+
101+
Starting with gdal3.1 (PROJ 7.1), you can set `PROJ_NETWORK=ON` to use remote grids: https://proj.org/usage/network.html

docs/examples/layer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lambgeo/lambda:gdal3.0-py3.7
1+
FROM lambgeo/lambda-base:gdal3.0-py3.7
22

33
# Build a lambda package to be used with the lambda layer.
44
# Basically we don't want to replicated existant modules found in the layer ($PYTHONPATH)

docs/examples/package/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Here we create a package (like previously with amazonlambda-gdal)
2-
# we use the "-build" image because we don't want need pre-installed libaries
3-
FROM lambgeo/lambda:gdal3.0-py3.7
1+
FROM lambgeo/lambda-base:gdal3.0-py3.7
42

53
ENV PACKAGE_PREFIX=/var/task
64

0 commit comments

Comments
 (0)