Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
update terraform to provision endpoints - change docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Aug 5, 2023
1 parent 883f9e5 commit adc5bb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ jobs:
npm --no-git-tag-version version ${THE_VERSION//-*}
- name: Setup local DynamoDB
if: ${{ startsWith('test') }}
run: docker run -d -p 8000:8000 amazon/dynamodb-local

- name: Lint and Flake Install
if: ${{ startsWith('test') }}
run: |
pip3 install -U pip pylint
pip3 install -U pip flake8
Expand All @@ -112,9 +114,11 @@ jobs:
pip3 install -U pip pytest-dynamodb
- name: Load sample
if: ${{ startsWith('test') }}
run: python3 tests/example_load_data.py

- name: Test with pytest
if: ${{ startsWith('test') }}
run: pytest tests/test_api.py

- name: Commit Version Bump
Expand Down Expand Up @@ -147,6 +151,7 @@ jobs:
node-version: 14

- name: NPM install & NPM Lint
if: ${{ startsWith('test') }}
run:
npm install
npm run lint
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM public.ecr.aws/lambda/python:3.8
FROM public.ecr.aws/lambda/python:3.11

COPY $SOURCE .
RUN pip3 install -t /var/task --force ./$SOURCE
#RUN pip3 install -t /var/task --force ./$SOURCE

# Run the lambda
#CMD ["/var/task/hydrocronapi/controllers/hydrocron_controller.lambda_handler"]

0 comments on commit adc5bb6

Please sign in to comment.