Skip to content

Commit

Permalink
Merge pull request #34 from virtualcell/python-3.10
Browse files Browse the repository at this point in the history
upgrade from python 3.9 to 3.10 in Docker
  • Loading branch information
jcschaff authored Nov 13, 2024
2 parents b2ce4a0 + 23f4976 commit 1cd3266
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
- name: checkout vcell-solvers repo
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install Intel MacOS dependencies
if: matrix.platform == 'macos-13'
shell: bash
Expand All @@ -69,6 +73,7 @@ jobs:
gcc --version
gfortran --version
cmake --version
python --version
brew info boost
brew info hdf5
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9.7-slim AS build
FROM python:3.10.15-slim AS build

RUN apt-get -y update && apt-get install -y apt-utils && \
apt-get install -y -qq -o=Dpkg::Use-Pty=0 build-essential gfortran zlib1g-dev \
Expand Down Expand Up @@ -38,12 +38,12 @@ RUN $JAVA_HOME/bin/jlink \
--output /javaruntime

# Define base image and copy in jlink created minimal Java 17 environment
FROM python:3.9.7-slim
FROM python:3.10.15-slim
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH="${JAVA_HOME}/bin:${PATH}"
COPY --from=jre-build /javaruntime $JAVA_HOME

# now we have Java 17 and Python 3.9
# now we have Java 17 and Python 3.10.15 installed
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8

Expand Down
2 changes: 1 addition & 1 deletion Stochastic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (APPLE)
if (PROCESSOR_ARCHITECTURE STREQUAL "arm64")
link_directories("/opt/homebrew/lib")
else ()
link_directories("/usr/local/Cellar/hdf5/1.14.3_1/lib")
link_directories("/usr/local/lib")
endif()
endif()

Expand Down

0 comments on commit 1cd3266

Please sign in to comment.