Skip to content

Commit

Permalink
pin netCDF to version 1.6.5 (#94)
Browse files Browse the repository at this point in the history
* pin netCDF to version 1.6.5

* update comment
  • Loading branch information
dgauldie authored Jun 14, 2024
1 parent 13e7eb0 commit d302437
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
12 changes: 8 additions & 4 deletions docker/Dockerfile.api
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
FROM python:3.10

WORKDIR /
RUN pip install --no-cache-dir poetry==1.5.1

RUN pip install --upgrade pip && \
pip install --no-cache-dir poetry==1.5.1
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock
RUN poetry config virtualenvs.create false && \
poetry install --no-root --no-cache

# We have to install PyCIEMSS now since the interface uses Torch
# TODO: Do not use Torch in PyCIEMSS Library interface
RUN poetry run poe install-pyciemss
# Pin netCDF4 to version 1.6.5
RUN pip install netCDF4==1.6.5

# Install PyCIEMSS
RUN poetry run poe install-pyciemss

COPY service service
COPY tests tests
Expand Down
14 changes: 7 additions & 7 deletions docker/Dockerfile.worker
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
FROM python:3.10

# RUN wget --no-verbose -O julia.tar.gz "https://julialang-s3.julialang.org/bin/linux/$(uname -m|sed 's/86_//')/1.9/julia-1.9.2-linux-$(uname -m).tar.gz"
# RUN tar -xzf "julia.tar.gz" && mv julia-1.9.2 /opt/julia && \
# ln -s /opt/julia/bin/julia /usr/local/bin/julia && rm "julia.tar.gz"

WORKDIR /

# RUN julia -e 'using Pkg; Pkg.add(url="https://github.com/jataware/SciMLIntegration.jl", rev="main"); Pkg.precompile()'

RUN pip install --no-cache-dir poetry==1.5.1
RUN pip install --upgrade pip && \
pip install --no-cache-dir poetry==1.5.1
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock
RUN poetry config virtualenvs.create false && \
poetry install --no-root --no-cache

# Pin netCDF4 to version 1.6.5
RUN pip install netCDF4==1.6.5

# Install PyCIEMSS
RUN poetry run poe install-pyciemss

COPY service service
COPY tests tests
COPY README.md README.md
Expand Down

0 comments on commit d302437

Please sign in to comment.