Skip to content

Commit

Permalink
build: add dependabot for runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jan 17, 2024
1 parent 1e39ddb commit 452e83f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# Vector Service (tipg)
- package-ecosystem: pip
directory: "/lib/tipg-api/runtime"
schedule:
interval: weekly

# Raster Service (titiler-pgstac)
- package-ecosystem: pip
directory: "/lib/titiler-pgstac-api/runtime"
schedule:
interval: weekly

# STAC Service (stac-fastapi)
- package-ecosystem: pip
directory: "/lib/stac-api/runtime"
schedule:
interval: weekly
groups:
stac_fastapi:
patterns:
- stac-fastapi*
5 changes: 3 additions & 2 deletions lib/tipg-api/runtime/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:${PYTHON_VERSION}
WORKDIR /tmp
RUN python -m pip install pip -U

RUN python -m pip install tipg==0.3.1 "mangum>=0.14,<0.15" -t /asset --no-binary pydantic
COPY runtime/requirements.txt requirements.txt
RUN python -m pip install -r requirements.txt "mangum>=0.14,<0.15" -t /asset --no-binary pydantic

# Reduce package size and remove useless files
RUN cd /asset && find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\///' | sed 's/.cpython-[0-9]*//'); cp $f $n; done;
Expand All @@ -14,4 +15,4 @@ RUN find /asset -type d -a -name 'tests' -print0 | xargs -0 rm -rf

COPY runtime/src/*.py /asset/

CMD ["echo", "hello world"]
CMD ["echo", "hello world"]
1 change: 1 addition & 0 deletions lib/tipg-api/runtime/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tipg==0.3.1

0 comments on commit 452e83f

Please sign in to comment.