Closed fanpu closed 4 years ago
LGTM. Removes mentioned undefined behavior. However, I was wondering if the need to specify volume directory was mentioned anywhere / added in the tango documentation (under the Docker section).
I'll be addressing this shortly. Thanks for reviewing this!
In the Tango deployment instructions for Docker on Ubuntu 18.04, os.cwd() is unable to find the current directory of the Tango installation. I'm guessing most likely that the problem arose because of a difference in how supervisord or the OS determines the current working directory of a service. Previously, the cwd was probably inherited from where the supervisor daemon was started, but this implicit behavior is probably undefined behavior and we shouldn't be relying on it.
This PR forces the volume directory to be explicitly specified.