Skip to content

Commit

Permalink
Merge branch 'master' into fix-pip-install
Browse files Browse the repository at this point in the history
  • Loading branch information
steffengraber authored Jul 18, 2024
2 parents ec39293 + 25919b7 commit d842887
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ RUN python3 -m pip install https://api.github.com/repos/nest/nestml/zipball/pull

# python3 -m pip install nestml==8.0.0rc1 && \

RUN python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected]b1 && \
RUN python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected]b3 && \
python3 -m pip install --upgrade pygsl@git+https://github.com/pygsl/[email protected]

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
Expand All @@ -139,5 +139,5 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
COPY test-nest.sh /opt/test-nest.sh
RUN chmod +x /opt/test-nest.sh

EXPOSE 8080 52425 54286
EXPOSE 8080 52425 52426 54286
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
6 changes: 5 additions & 1 deletion src/3.8/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ nest --help
export MUSIC_ROOT_DIR='$HOME/.cache/music.install'
export MUSIC_ROOT=${MUSIC_ROOT_DIR}
MUSIC_PATH=${MUSIC_ROOT_DIR}
export LD_LIBRARY_PATH=${MUSIC_PATH}/lib:$LD_LIBRARY_PATH
export PATH=${MUSIC_PATH}/bin:$PATH
export CPATH=${MUSIC_PATH}/include:$CPATH
export PYTHONPATH=${MUSIC_PATH}/lib/python3.8/site-packages:$PYTHONPATH

export NESTML_MODULES_PATH=${NESTML_MODULES_PATH:-/tmp/nestmlmodules}

# Set LD_LIBRARY_PATH for music and nestml modules
export LD_LIBRARY_PATH=${MUSIC_PATH}/lib:${NESTML_MODULES_PATH}:$LD_LIBRARY_PATH

MODE="${NEST_CONTAINER_MODE:-$1}"
if [[ "${MODE}" = 'interactive' ]]; then
read -p "Your python script: " name
Expand Down
4 changes: 2 additions & 2 deletions src/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ RUN python3 -m pip install --upgrade pip && \
python3 -m pip install nest-desktop --pre && \
python3 -m pip uninstall nestml -y && \
python3 -m pip install --upgrade https://github.com/nest/nestml/archive/refs/heads/master.zip && \
python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected]b1
python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected]b3

RUN python3 -m pip install --force-reinstall --upgrade scipy

Expand All @@ -157,5 +157,5 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
COPY test-nest.sh /opt/test-nest.sh
RUN chmod +x /opt/test-nest.sh

EXPOSE 8080 52425 54286
EXPOSE 8080 52425 52426 54286
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
6 changes: 5 additions & 1 deletion src/dev/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ nest --help
export MUSIC_ROOT_DIR='$HOME/.cache/music.install'
export MUSIC_ROOT=${MUSIC_ROOT_DIR}
MUSIC_PATH=${MUSIC_ROOT_DIR}
export LD_LIBRARY_PATH=${MUSIC_PATH}/lib:$LD_LIBRARY_PATH
export PATH=${MUSIC_PATH}/bin:$PATH
export CPATH=${MUSIC_PATH}/include:$CPATH
export PYTHONPATH=${MUSIC_PATH}/lib/python3.8/site-packages:$PYTHONPATH

export NESTML_MODULES_PATH=${NESTML_MODULES_PATH:-/tmp/nestmlmodules}

# Set LD_LIBRARY_PATH for music and nestml modules
export LD_LIBRARY_PATH=${MUSIC_PATH}/lib:${NESTML_MODULES_PATH}:$LD_LIBRARY_PATH

MODE="${NEST_CONTAINER_MODE:-$1}"
if [[ "${MODE}" = 'interactive' ]]; then
read -p "Your python script: " name
Expand Down

0 comments on commit d842887

Please sign in to comment.