Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ WORKDIR /app

COPY pyproject.toml uv.lock .python-version ./
COPY src/ src/
COPY config/ config/
COPY data/datasets/ data/datasets/
COPY data/extents.yaml data/extents.yaml

RUN uv sync --frozen --no-dev

RUN mkdir -p /tmp/data /app/data/pygeoapi /app/data/artifacts && \
RUN mkdir -p /app/data/pygeoapi /app/data/artifacts && \
printf '[]\n' > /app/data/artifacts/records.json && \
chown -R eo:eo /tmp/data /app/data
chown -R eo:eo /app/data

ENV CACHE_OVERRIDE=/app/data
ENV PYGEOAPI_CONFIG=/app/data/pygeoapi/pygeoapi-config.yml
ENV PYGEOAPI_OPENAPI=/app/data/pygeoapi/pygeoapi-openapi.yml
ENV PORT=8000
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,17 @@ else:

## pygeoapi

The OGC API is served by pygeoapi, mounted at `/ogcapi`. Its configuration is generated dynamically from published artifacts and written to `data/pygeoapi/pygeoapi-config.yml`.
The OGC API is served by pygeoapi, mounted at `/ogcapi`. Its configuration is generated dynamically from published artifacts and written to the resolved runtime data directory (for Docker: `/app/data/pygeoapi/pygeoapi-config.yml`).

The base configuration is bundled with the package at `src/climate_api/data/pygeoapi/base.yml` and does not need to be copied or managed separately.

To validate the configuration manually:

```
PYTHONPATH="$(pwd)/src" uv run pygeoapi config validate -c data/pygeoapi/pygeoapi-config.yml
```

Regenerate after changes to `config/pygeoapi/base.yml` or publication logic:
Regenerate after changes to publication logic:

```
make openapi
Expand Down
47 changes: 0 additions & 47 deletions config/pygeoapi/base.yml

This file was deleted.

Loading