Skip to content

Commit

Permalink
Further updates to docker scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dionperd committed Sep 21, 2023
1 parent 150f24c commit ea83705
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker/cosimulate_tvb_nest.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh

echo "Pulling TVB-Multiscale docker image"
/apps/daint/system/opt/sarus/1.1.0/bin/sarus pull thevirtualbrain/tvb-multiscale:2.0.1
/apps/daint/system/opt/sarus/1.1.0/bin/sarus pull thevirtualbrain/tvb-multiscale:2.1.0

start=$SECONDS

echo "Start docker container"
srun -C mc /apps/daint/system/opt/sarus/1.1.0/bin/sarus --debug run --mpi thevirtualbrain/tvb-multiscale:2.0.1 /home/docker/env/neurosci/bin/python /home/docker/packages/tvb-multiscale/docker/installation_test.py
srun -C mc /apps/daint/system/opt/sarus/1.1.0/bin/sarus --debug run --mpi thevirtualbrain/tvb-multiscale:2.1.0 /home/docker/.local/bin/python /home/docker/packages/tvb-multiscale/docker/installation_test.py

duration=$(( SECONDS - start ))

Expand Down
4 changes: 2 additions & 2 deletions docker/cosimulate_with_staging.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh

echo "Pulling TVB-Multiscale docker image"
/apps/daint/system/opt/sarus/1.1.0/bin/sarus pull thevirtualbrain/tvb-multiscale:2.0.1
/apps/daint/system/opt/sarus/1.1.0/bin/sarus pull thevirtualbrain/tvb-multiscale:2.1.0

start=$SECONDS

echo "Start docker container"
srun -C mc /apps/daint/system/opt/sarus/1.1.0/bin/sarus --debug run --mpi --mount=type=bind,source=$PWD,destination=$PWD thevirtualbrain/tvb-multiscale:2.0.1 /bin/bash -c "cd $PWD && /home/docker/env/neurosci/bin/python $1"
srun -C mc /apps/daint/system/opt/sarus/1.1.0/bin/sarus --debug run --mpi --mount=type=bind,source=$PWD,destination=$PWD thevirtualbrain/tvb-multiscale:2.1.0 /bin/bash -c "cd $PWD && /home/docker/.local/bin/python $1"

duration=$(( SECONDS - start ))

Expand Down
2 changes: 1 addition & 1 deletion docker/hpc/example_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export DOCKER_HOME=/home/docker
export DOCKER_TVB_ROOT=$DOCKER_HOME/packages/tvb-root
export DOCKER_TVB_MULTISCALE=$DOCKER_HOME/packages/tvb-multiscale
export DOCKER_WORKDIR=$DOCKER_TVB_MULTISCALE/tvb_multiscale/examples/tvb_nest
export DOCKER_PYTHON=/usr/bin/python
export DOCKER_PYTHON=$DOCKER_HOME/.local/bin/python
export DOCKER_RUN_FILE=/home/docker/packages/tvb-multiscale/tvb_multiscale/examples/tvb_nest/example.py
export CMD=$DOCKER_PYTHON' '$DOCKER_RUN_FILE

Expand Down

0 comments on commit ea83705

Please sign in to comment.