Open sverhoeven opened 3 years ago
Be sure to document that only given dir and its sub-dirs can be seen inside container. Doing ..
in container will give different results then outside.
Should we complain if a mount "shadows" an existing path inside a container? e.g. if you create a folder with a path equal to the installation location of the model
We would need look inside image to check if given dirs already exist. The only way I can think of is to spinup the container twice, first to check if given dirs already exist, and then start grpc4bmi server.
For it being a corner case and the amount of work I don't think it's wise to check if mounts shadow existing dirs.
0.2.12 has been released with this issues implemented. However 0.3.x / master branch has not been updated.
The config file outside the container uses path which resolve on the host machine. Inside the container this path needs to mapped to
/data/input
. It would be nice if inside the container the same paths can be used.Something like
Inside the container you would have
/shared/wflow/model-parameters
is mounted as/shared/wflow/model-parameters
and/tmp/wflow-2000-2010
is mounted as '/tmp/wflow-2000-2010'/shared/wflow/model-parameters
directory with big parameter set for modelAfter model has run outside container you could have model output like logs for example
/tmp/wflow-2000-2010/wflow.log
.Pros:
Cons:
/data/input