Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pin netCDF to version 1.6.5 #94

Merged
merged 2 commits into from
Jun 14, 2024
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
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
Loading