mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-15 09:44:07 +00:00
a2a3c022b8
The -m/--mount option makes it possible to bind-mount volumes at runtime. The volumes are declared in a local/docker-compose.tmp.yml file. The problem with this approach is when we want to bind-mount a volume to a service which is specific to the dev context. For instance: the "learning" service when the MFE plugin is enabled. In such a case, starting the service triggers a call to `docker-compose stop` in the local context. This call fails because the "learning" service does not exist in the local context. Note that this issue only seems to occur with docker-compose v1. To resolve this issue, we create two additional filters for the dev context, which emulate the behaviour of the local context. With this approach, we convert the -m/--mount arguments right after they are parsed. Because they are parsed just once, we can get rid of the de-duplication logic initially introduced with the COMPOSE_CLI_MOUNTS context. Close #711. Close also https://github.com/overhangio/tutor-mfe/issues/57. |
||
---|---|---|
.. | ||
commands | ||
hooks | ||
__init__.py | ||
helpers.py | ||
openedx-lms-common-settings | ||
test_bindmounts.py | ||
test_config.py | ||
test_env.py | ||
test_images.py | ||
test_jobs.py | ||
test_plugins_v0.py | ||
test_serialize.py | ||
test_utils.py |