mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-30 13:10:43 +00:00
changed docker images python version and add github action
This commit is contained in:
parent
fcdf5228d6
commit
a083934ffb
3 changed files with 33 additions and 2 deletions
31
.github/workflows/MLPipelinePullRequest.yml
vendored
31
.github/workflows/MLPipelinePullRequest.yml
vendored
|
|
@ -32,6 +32,37 @@ jobs:
|
||||||
# echo "Please choose one of these tags: 'major', 'major', 'patch'"
|
# echo "Please choose one of these tags: 'major', 'major', 'patch'"
|
||||||
# exit(1)
|
# 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:
|
Verify-Model:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM public.ecr.aws/lambda/python:3.10
|
FROM public.ecr.aws/lambda/python:3.12
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR ${LAMBDA_TASK_ROOT}
|
WORKDIR ${LAMBDA_TASK_ROOT}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Dockerfile that can be used to test loading a model to generate a prediction (part of CI/CD flow)
|
# 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
|
RUN apt-get update && apt-get install -y libgomp1 gcc python3-dev
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue