changed docker images python version and add github action

This commit is contained in:
Michael Duong 2025-11-02 11:53:44 +00:00
parent fcdf5228d6
commit a083934ffb
3 changed files with 33 additions and 2 deletions

View file

@ -32,6 +32,37 @@ jobs:
# echo "Please choose one of these tags: 'major', 'major', 'patch'"
# exit(1)
Verify-Lambda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install packages to retrieve artifacts
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
run: |
pip install --upgrade pip
pip install -r modules/ml-pipeline/src/pipeline/requirements/version_control/requirements.txt
- name: Retrieve artifacts (dvc.lock)
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
run: |
cd modules/ml-pipeline/src/pipeline
dvc pull -r experiments
- name: Build Lambda docker Image
run: |
cd deployment/
docker build . --file Dockerfile.prediction.lambda --tag lambda_test
- name: Run lambda docker container
run: |
docker run lambda_test
Verify-Model:
runs-on: ubuntu-latest

View file

@ -1,4 +1,4 @@
FROM public.ecr.aws/lambda/python:3.10
FROM public.ecr.aws/lambda/python:3.12
# Set the working directory
WORKDIR ${LAMBDA_TASK_ROOT}

View file

@ -1,5 +1,5 @@
# Dockerfile that can be used to test loading a model to generate a prediction (part of CI/CD flow)
FROM python:3.10.12-slim
FROM python:3.12.12-slim
RUN apt-get update && apt-get install -y libgomp1 gcc python3-dev