Since each of the Containers has a reference to the top-level mds package anyway, there's no reason their task-specific code (e.g. the data generation in fake) needs to live within the Container structure. The side-benefit (and real reason) is making that code more easily re-usable outside this specific Docker setup.
Container ENTRYPOINT scripts (usually main.py) remain within the container.
Since each of the Containers has a reference to the top-level
mds
package anyway, there's no reason their task-specific code (e.g. the data generation infake
) needs to live within the Container structure. The side-benefit (and real reason) is making that code more easily re-usable outside this specific Docker setup.Container
ENTRYPOINT
scripts (usuallymain.py
) remain within the container.