Skip to content

Commit

Permalink
updated dockerfile for chmod and copasi process
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Feb 26, 2024
1 parent 27db134 commit f8fe251
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
#
# CMD ["poetry", "run", "jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]

# Use a more specific tag instead of latest for reproducibility
FROM ubuntu:20.04
# TODO: Use a more specific tag instead of latest for reproducibility
FROM ubuntu:latest

ENV DEBIAN_FRONTEND=noninteractive \
XVFB_RES="1920x1080x24" \
Expand Down Expand Up @@ -126,6 +126,8 @@ RUN useradd -m -s /bin/bash jupyteruser && chown -R jupyteruser:jupyteruser /app

USER jupyteruser

RUN chmod +x /app/notebooks

VOLUME /app/data

CMD ["poetry", "run", "jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]
16 changes: 15 additions & 1 deletion biosimulator_processes/copasi_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,25 @@
set_species,
run_time_course,
get_compartments,
model_info
model_info,
biomodels
)
from process_bigraph import Process, Composite, pf


def find_models(term: str):
return biomodels.search_for_model(term)


def fetch_model(term: str, index: int = 0):
"""Searrch for models matching the term and return an instantiated model from BioModels.
TODO: Implement a dynamic search of this
"""




class CopasiProcess(Process):
config_schema = {
'model_file': 'string',
Expand Down

0 comments on commit f8fe251

Please sign in to comment.