Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Lambda Docker Image for v2.3.0, python 3.11 #1812

Merged
merged 1 commit into from
Apr 24, 2024
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/DockerBuild.LambdaBaseImage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
version:
description: "Version of ArcGIS API for Python to install in the image"
type: string
default: "2.2.0"
default: "2.3.0"
python_version:
description: "Python version to base image on"
type: string
default: "3.9"
default: "3.11"
is_latest_release:
description: "Version of ArcGIS API for Python is Latest current release"
type: boolean
Expand Down
9 changes: 5 additions & 4 deletions docker/LambdaBaseImage.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG python_version=3.9
# lambda python image, defaults to python 3.9
ARG python_version=3.11
# lambda python image, defaults to python 3.11
FROM public.ecr.aws/lambda/python:${python_version}

# set metadata
Expand All @@ -9,9 +9,10 @@ LABEL org.opencontainers.image.licenses=Apache
LABEL org.opencontainers.image.source=https://github.com/esri/arcgis-python-api

# install dependencies, then clean yum cache
RUN yum -y install gcc krb5-devel krb5-server krb5-libs && yum clean all && rm -rf /var/cache/yum
RUN yum -y install gcc gcc-c++ krb5-devel krb5-server krb5-libs && yum clean all && rm -rf /var/cache/yum
# install arcgis
ARG arcgis_version="2.2.0"
ARG arcgis_version="2.3.0"
# adding .* ensures the latest patch version is installed
RUN pip3 install "arcgis==${arcgis_version}.*" --target "${LAMBDA_TASK_ROOT}"
# set entrypoint to app.py handler method
# (note that app.py is missing from this base image)
Expand Down