Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
843a272
commit 8acc896
Showing
15 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
docker='/c/gfk/EChem/StatisticalAnalysis/Docker_build/MECSim' | ||
|
||
# copy docker build instructions file | ||
cp Dockerfile $docker | ||
# scripts includes running jupyter (run_jupyter_script.sh) and a default run_mecsim_script.sh | ||
# also a sample skeleton file (Master.sk) | ||
mkdir $docker/script | ||
cp script/* $docker/script | ||
# sample skeleton files for different mechanisms (copy over Master.sk) | ||
mkdir $docker/input_templates | ||
cp input_templates/* $docker/input_templates | ||
# documentation (updatable via github via docker) | ||
mkdir $docker/docs | ||
cp docs/* $docker/docs | ||
# sample single run MECSim input file (Master.inp) | ||
mkdir $docker/input | ||
cp input/* $docker/input | ||
# MECSim source code for build (removed from docker container post-compile) | ||
mkdir $docker/src | ||
cp src/* $docker/src | ||
# script to specify docker container functionality at run time | ||
mkdir $docker/entry_script | ||
cp entry_script/* $docker/entry_script | ||
# python scripts that can be editted by user or updated from git | ||
mkdir $docker/python | ||
cp python/*.ipynb $docker/python | ||
|
||
# what about the scripts to run the docker container correctly? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
docker run -v %cd%/input:/usr/local/external/input -v %cd%/output:/usr/local/output -v %cd%/python:/usr/local/external/python -v %cd%/script:/usr/local/external/script --rm --name mecsim_container -p 8888:8888 -it mecsim --jupyter | ||
docker run -v %cd%/input:/usr/local/external/input -v %cd%/output:/usr/local/output -v %cd%/python:/usr/local/external/python -v %cd%/docs:/usr/local/external/docs -v %cd%/input_templates:/usr/local/external/input_templates -v %cd%/script:/usr/local/external/script --rm --name mecsim_container -p 8888:8888 -it mecsim --jupyter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
docker run -v %cd%/input:/usr/local/input -v %cd%/output:/usr/local/output -v %cd%/python:/usr/local/python -v %cd%/script:/usr/local/script -it mecsim --single | ||
docker run -v %cd%/input:/usr/local/input -v %cd%/output:/usr/local/output -it mecsim --single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/bin/bash | ||
|
||
PYTHON_CODE_DIR='python/' | ||
EXTERNAL_DIR='external/' | ||
|
||
# Script to run a single MECSim execution. Working directory of wherever this script is called (/ in docker) | ||
echo "In sample customizable MECSim script..." | ||
echo "Any python codes to be put in $PYTHON_CODE_DIR" | ||
echo "jupyter notebook test" | ||
#jupyter notebook --port=80 --no-browser --ip=0.0.0.0 --allow-root | ||
jupyter notebook --port=8888 --no-browser --allow-root | ||
jupyter notebook --notebook-dir=$EXTERNAL_DIR --port=8888 --no-browser --allow-root |