Skip to content

Commit

Permalink
feat: add gdal & fix: cluster name from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
nischalstha9 committed Jul 17, 2024
1 parent 295109b commit b8ff511
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
shell: bash
run: |
TASK_ID=`aws ecs list-tasks --cluster ${{ secrets.ECS_CLUSTER_NAME }} --service ${{ secrets.ECS_SERVICE_NAME }} | jq -r .taskArns[0]`
aws ecs execute-command --cluster dtm-ecs-cluster --task $TASK_ID --region ${{env.AWS_REGION}} --interactive --command "/bin/bash -c 'pdm run alembic upgrade head'"
aws ecs execute-command --cluster ${{ secrets.ECS_CLUSTER_NAME }} --task $TASK_ID --region ${{env.AWS_REGION}} --interactive --command "/bin/bash -c 'pdm run alembic upgrade head'"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ DockerData/

#Backend Template
src/backend/templates/*

# precommit
.ruff_cache/
5 changes: 5 additions & 0 deletions src/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ RUN set -ex \
-y --no-install-recommends \
"build-essential" \
"gcc" \
"g++" \
"libpcre3-dev" \
"libpq-dev" \
"libspatialindex-dev" \
"libproj-dev" \
"libgeos-dev" \
"git" \
"gdal-bin" \
"libgdal-dev" \
&& rm -rf /var/lib/apt/lists/*

# Install PDM
Expand Down Expand Up @@ -52,6 +55,8 @@ RUN set -ex \
"libspatialindex-c6" \
"libproj25" \
"libgeos-c1v5" \
"gdal-bin" \
"libgdal-dev" \
&& rm -rf /var/lib/apt/lists/*

# Retrieve packages from build stage
Expand Down
14 changes: 12 additions & 2 deletions src/backend/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies = [
"asyncpg>=0.29.0",
"Jinja2>=3.1.4",
"numpy==1.26.4",
"GDAL==3.6.2",
]
requires-python = ">=3.10"
license = {text = "GPL-3.0-only"}
Expand Down

0 comments on commit b8ff511

Please sign in to comment.