Skip to content

Commit

Permalink
feat: simplified Python environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Sep 24, 2021
1 parent ec718cd commit 0a40255
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ COPY Pipfile /app/Pipfile
COPY Pipfile.lock /app/Pipfile.lock

# install environment
RUN pipenv sync
RUN pipenv install --system --deploy

# force reinstall of matplotlib due to inconsistent version
RUN pipenv run pip uninstall -y matplotlib \
&& pipenv run pip install "matplotlib==3.2.0" \
&& pipenv run python -c "import matplotlib.font_manager"
RUN pip uninstall -y matplotlib \
&& pip install "matplotlib==3.2.0" \
&& python -c "import matplotlib.font_manager"

# install assimulo because pipenv fails to install it
ARG ASSIMULO_VERSION=3.2.5
RUN pipenv run pip install git+https://github.com/modelon-community/Assimulo.git@Assimulo-${ASSIMULO_VERSION}
RUN pip install git+https://github.com/modelon-community/Assimulo.git@Assimulo-${ASSIMULO_VERSION}

CMD /bin/bash /xvfb-startup.sh pipenv run ipython
CMD /bin/bash /xvfb-startup.sh ipython
2 changes: 1 addition & 1 deletion Dockerfile-base
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ RUN apt-get install --no-install-recommends -y \
swig \
libbz2-dev \
\
&& PY_EXEC_PATH=$(pipenv run which python) \
&& PY_EXEC_PATH=$(python) \
&& PY_PREFIX=$(echo ${PY_EXEC_PATH} | rev | cut -d "/" -f 3- | rev) \
&& cd /tmp \
&& wget https://github.com/libsbmlsim/libsbmlsim/archive/refs/tags/v${LSBMLSIM_VERSION}.tar.gz \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ We recommend that users use the hosted versions of runBioSimulations at https://

Each validated simulation tool is available as Docker image. Most of the validated simulation tools are also available as Python APIs. See https://biosimulators.org for information about the interfaces available for each tool and where they can be obtained.

A Docker image with a Pipenv environment with Python APIs for most of the validated simulation tools is available at https://github.com/orgs/biosimulators/packages/container/package/biosimulators. An iPython shell for this environment can be launched by installing Docker and running the commands below. Information about using the Python APIs in the image is available at https://biosimulators.org/help.:
A Docker image with a Python environment with APIs for most of the validated simulation tools is available at https://github.com/orgs/biosimulators/packages/container/package/biosimulators. An iPython shell for this environment can be launched by installing Docker and running the commands below. Information about using the Python APIs in the image is available at https://biosimulators.org/help.:
```
docker pull ghcr.io/biosimulators/biosimulators
docker run -it --rm ghcr.io/biosimulators/biosimulators
Expand Down

0 comments on commit 0a40255

Please sign in to comment.