-
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.
make queryables and summaries automatically updatable
- Loading branch information
1 parent
40cad1a
commit 6198adf
Showing
10 changed files
with
782 additions
and
249 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
env.local | ||
env.docker | ||
* | ||
!stac_app.py | ||
!requirements.txt | ||
!discover_queryables.sql | ||
!discover_summaries.sql |
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 |
---|---|---|
|
@@ -20,3 +20,6 @@ env.docker | |
|
||
# Python | ||
__pycache__/ | ||
|
||
# virtual environments | ||
venv/ |
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 |
---|---|---|
@@ -1,39 +1,10 @@ | ||
FROM python:3.12-slim | ||
|
||
FROM python:3.8-slim as base | ||
|
||
FROM base as builder | ||
# Any python libraries that require system libraries to be installed will likely | ||
# need the following packages in order to build | ||
RUN apt-get update && apt-get install -y build-essential git | ||
|
||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt | ||
ENV PATH=$PATH:/install/bin | ||
|
||
ARG install_dev_dependencies=true | ||
|
||
# TODO : temporary fix | ||
RUN git clone https://github.com/stac-utils/stac-fastapi.git | ||
|
||
WORKDIR /stac-fastapi | ||
|
||
# TODO : checkout to working November 25 2022 version of stac-fastapi, where pgstac was bundled in stac-fastapi (now `pip install pypgstac`) | ||
RUN git checkout d53e792 | ||
|
||
RUN pip install \ | ||
-e stac_fastapi/api \ | ||
-e stac_fastapi/types \ | ||
-e stac_fastapi/extensions | ||
RUN pip install -e stac_fastapi/pgstac | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install --no-install-recommends --assume-yes \ | ||
postgresql-client | ||
|
||
# see .dockerignore file for which files are included | ||
COPY . /app | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install -r requirements.txt | ||
RUN python -m pip install -r requirements.txt | ||
|
||
CMD ["uvicorn", "stac_app:app", "--reload", "--host", "0.0.0.0", "--port", "8000", "--root-path", ""] | ||
CMD ["uvicorn", "stac_app:app", "--host", "0.0.0.0", "--port", "8000", "--root-path", ""] |
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.