Skip to content

Commit

Permalink
/deploy sit
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Sep 4, 2024
1 parent 64037e6 commit 5b2dbc9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,12 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/lambdaDockerfileArm
file: ./docker/lambdaDockerfile
push: true
pull: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm/v7
platforms: linux/amd64
build-args: |
SOURCE=${{ env.pyproject_name }}==${{ env.the_version }}
Expand Down
25 changes: 25 additions & 0 deletions docker/lambdaDockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ARG FUNCTION_DIR="/function"

FROM public.ecr.aws/lambda/python:3.11

# Include global arg in this stage of the build
ARG SOURCE

RUN yum -q -y install gcc

# Create function directory
# RUN mkdir -p ${FUNCTION_DIR}
# WORKDIR ${FUNCTION_DIR}

# Install tig from artifactory
COPY $DIST_PATH $DIST_PATH

# install tig into working directory so we can call lambda
RUN pip3 install awslambdaric --target $LAMBDA_TASK_ROOT

RUN pip3 install --no-cache-dir --force --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ --target "${LAMBDA_TASK_ROOT}" $SOURCE

RUN rm -rf $DIST_PATH

ENTRYPOINT []
CMD ["podaac.lambda_handler.lambda_handler.handler"]

0 comments on commit 5b2dbc9

Please sign in to comment.