-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from MartinXPN/feature/sql
Feature/sql
- Loading branch information
Showing
8 changed files
with
339 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM public.ecr.aws/lambda/python:3.12 | ||
|
||
# Initial setup | ||
RUN pip install --upgrade pip | ||
RUN pip install awslambdaric -t "${LAMBDA_TASK_ROOT}" | ||
|
||
# Install dependencies | ||
COPY coderunners/requirements.txt ./ | ||
RUN pip install -r requirements.txt -t "${LAMBDA_TASK_ROOT}" | ||
RUN python -m pip install --upgrade pandas | ||
|
||
# Setup source files | ||
COPY coderunners/*.py ${LAMBDA_TASK_ROOT}/coderunners/ | ||
COPY models.py ${LAMBDA_TASK_ROOT}/ | ||
|
||
# Run the lambda function handler | ||
ENTRYPOINT [ "python", "-m", "awslambdaric" ] | ||
CMD [ "coderunners.app.run_code_lambda" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.