o-nikolas commented on code in PR #50516: URL: https://github.com/apache/airflow/pull/50516#discussion_r2087171882
########## providers/amazon/src/airflow/providers/amazon/aws/executors/aws_lambda/docker/Dockerfile: ########## @@ -0,0 +1,106 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Use the official AWS Lambda Python base image. +FROM public.ecr.aws/lambda/python:3.12 + +# hadolint ignore=DL3033 +RUN yum -y install unzip \ + && yum clean all \ + && rm -rf /var/cache/yum + +# Install the AWS CLI. +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ + unzip awscliv2.zip \ + && ./aws/install \ + && rm -rf ./aws awscliv2.zip + +## Install Airflow and dependencies. +# The most current version of Airflow is installed by default, along with the amazon and postgres +# provider packages. +# If you would like to install a specific version, you can use the requirements.txt to change the +# version along with installing your dependencies or update this Dockerfile to install a specific +# version of Airflow. + +# NOTE: If you change the below line, specifically removing the amazon extra, please ensure boto3 is +# installed via another method. Boto3 is required for the Lambda executor to function properly. +# hadolint ignore=SC2102 +RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir apache-airflow[amazon,postgres]==2.10.5 Review Comment: Ooops, that's just from testing, good catch. I intend to leave it at latest version. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
