@@ -13,9 +13,11 @@ To run COMPAS via a ``pythonSubmit.py`` file, type::
1313 docker run \
1414 --rm \
1515 -it \
16+ -v $(pwd)/compas-input:/app/COMPAS/config \
1617 -v $(pwd)/compas-logs:/app/COMPAS/logs \
1718 -v $(pwd)/pythonSubmit.py:/app/starts/pythonSubmit.py \
1819 -e COMPAS_EXECUTABLE_PATH=/app/COMPAS/bin/COMPAS \
20+ -e COMPAS_INPUT_DIR_PATH=/app/COMPAS/config \
1921 -e COMPAS_LOGS_OUTPUT_DIR_PATH=/app/COMPAS/logs \
2022 teamcompas/compas \
2123 python3 /app/starts/pythonSubmit.py
@@ -35,8 +37,9 @@ short for [-i and -t] - provides an interactive terminal\ [#f2]_.
3537**-v <path-on-host>:<path-in-container> ** |br |
3638mount ``<path-on-host> `` to ``<path-in-container> ``\ [#f3 ]_. |br |
3739
38- This time we not only want to get the output from COMPAS on the host machine, we also want to supply a ``pythonSubmit.py `` to the
39- container from the host machine.
40+ This time we not only want to read the COMPAS input files (i.e. grid file and/or logfile-definitions file) on the
41+ host from the container, and get the output from COMPAS in the container onto the host machine, we also want to
42+ supply a ``pythonSubmit.py `` to the container from the host machine.
4043
4144**-e VAR_NAME=value ** |br |
4245set the environment variable ``VAR_VAME `` to `value `\ [#f4 ]_.
@@ -53,13 +56,14 @@ via the command line
5356
5457To run the COMPAS executable from the command line (i.e. without ``pythonSubmit.py ``), type::
5558
56- docker run \
57- --rm \
58- -it \
59- -v $(pwd)/compas-logs:/app/COMPAS/logs \
60- teamcompas/compas \
61- bin/COMPAS \
62- --number-of-systems=5 \
59+ docker run \
60+ --rm \
61+ -it \
62+ -v $(pwd)/compas-input:/app/COMPAS/config \
63+ -v $(pwd)/compas-logs:/app/COMPAS/logs \
64+ teamcompas/compas \
65+ bin/COMPAS \
66+ --number-of-systems=5 \
6367 --output-path=/app/COMPAS/logs
6468
6569
@@ -77,7 +81,9 @@ short for [-i and -t] - provides an interactive terminal\ [#f2]_.
7781**-v <path-on-host>:<path-in-container> ** |br |
7882mount ``<path-on-host> `` to ``<path-in-container> ``\ [#f3 ]_. |br |
7983
80- In this instance, make it so `$(pwd)/compas-logs ` on my machine is the same as `/app/COMPAS/logs ` inside the container.
84+ In this instance, make it so |br |
85+ `$(pwd)/compas-input ` on my machine is the same as `/app/COMPAS/config ` inside the container. |br |
86+ `$(pwd)/compas-logs ` on my machine is the same as `/app/COMPAS/logs ` inside the container.
8187
8288**teamcompas/compas ** |br |
8389the image to run.
@@ -102,7 +108,7 @@ environment, and are non-breaking changes (i.e. benign to other environments).
102108``COMPAS_EXECUTABLE_PATH `` specifies where ``pythonSubmit.py `` looks for the COMPAS executable. This override exists purely for
103109ease-of-use from the command line.
104110
105- `COMPAS_LOGS_OUTPUT_DIR_PATH ` specifies where COMPAS output log filess are created. The override exists because the mounted directory
111+ `COMPAS_LOGS_OUTPUT_DIR_PATH ` specifies where COMPAS output log files are created. The override exists because the mounted directory
106112(option `-v `) is created before COMPAS runs. COMPAS sees that the directory where it's supposed to put logs already exists, so it
107113creates a different (i.e. non-mapped) directory for the output log files.
108114
@@ -143,3 +149,4 @@ to get the container id of interest, then type::
143149 .. [#f5 ] https://docs.docker.com/engine/reference/run/
144150 .. [#f6 ] https://docs.docker.com/engine/reference/run/#detached--d
145151
152+
0 commit comments