Skip to content

Commit

Permalink
Move docker requirements into text files
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Nov 19, 2024
1 parent 642d806 commit 9af6161
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cache: "pip"

- name: "Install requirements"
run: python3 -m pip install -r requirements.txt
run: python3 -m pip install ruff

- name: "Format"
run: python3 -m ruff format .
Expand Down
2 changes: 1 addition & 1 deletion Docker/pirate-api
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apt update && \
apt -y install build-essential \
libffi-dev

RUN pip install astral timezonefinder pytz zarr s3fs ujson starlette uvicorn fastapi fastapi-utils boto3 scipy orjson psutil typing-inspect watchfiles dask xarray pandas fastparquet
RUN pip install -r requirements-api.txt

run apt -y install unzip rsync

Expand Down
2 changes: 1 addition & 1 deletion Docker/pirate-ingest
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

# Install python libs
RUN python3 -m pip install numpy boto3 netCDF4 xarray cartopy cfgrib "eccodes>=1.6.1" zarr dask "s3fs>=2023.10.0" bottleneck rioxarray dask[distributed] xarray-spatial redis rechunker geopandas nwswx git+https://github.com/blaylockbk/Herbie.git
RUN python3 -m pip install -r requirements-ingest.txt

ENTRYPOINT ["python3"]
20 changes: 20 additions & 0 deletions Docker/requirements-api.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
astral==3.2
timezonefinder==6.5.4
pytz==2024.2
zarr==2.18.3
s3fs==2024.10.0
ujson==5.10.0
starlette==0.41.3
uvicorn==0.32.0
fastapi==0.115.5
fastapi-utils==0.8.0
boto3==1.35.65
scipy==1.14.1
orjson==3.10.11
psutil==6.1.0
typing-inspect==0.9.0
watchfiles==0.24.0
dask==2024.11.2
xarray==2024.10.0
pandas==2.2.3
fastparquet==2024.11.0
19 changes: 19 additions & 0 deletions Docker/requirements-ingest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
numpy==2.1.3
boto3==1.35.65
netCDF4==1.7.2
xarray==2024.10.0
cartopy==0.24.1
cfgrib==0.9.14.1
eccodes>=1.6.1
zarr==2.18.3
dask==2024.11.2
s3fs==2024.10.0
bottleneck==1.4.2
rioxarray==0.18.1
distributed==2024.11.2
xarray-spatial==0.4.0
redis==5.2.0
rechunker==0.5.2
geopandas==1.0.1
nwswx==0.1.2
git+https://github.com/blaylockbk/Herbie.git
File renamed without changes.

0 comments on commit 9af6161

Please sign in to comment.