Hi, this turns out to be an issue with Docker. Named volumes are not managed the same way as local folders being mounted as volumes.
Volumes are initialized when a container is created. If the container’s base image contains data at the specified mount point, that existing data is copied into the new volume upon volume initialization. (Note that this does not apply when mounting a host directory.) When mounting host directories, the base.py settings file is not being copied to the volume. https://docs.docker.com/engine/tutorials/dockervolumes/ Follow issue #6 for updates: https://gitlab.com/mayan-edms/mayan-edms-docker/issues/6 On Saturday, January 21, 2017 at 8:37:04 PM UTC-4, Jens Pfau wrote: > > Hi, > > I have downloaded the official Docker image (latest version) from the > Docker hub: > https://hub.docker.com/r/mayanedms/mayanedms/ > > When I follow the instructions for initialising the container, I get the > following output from the container: > Traceback (most recent call last): > File "/usr/local/bin/mayan-edms.py", line 10, in <module> > execute_from_command_line(sys.argv) > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", > line 354, in execute_from_command_line > utility.execute() > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", > line 303, in execute > settings.INSTALLED_APPS > File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", > line 48, in __getattr__ > self._setup(name) > File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", > line 44, in _setup > self._wrapped = Settings(settings_module) > File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", > line 92, in __init__ > mod = importlib.import_module(self.SETTINGS_MODULE) > File "/usr/lib/python2.7/importlib/__init__.py", line 37, in > import_module > __import__(name) > ImportError: No module named settings > > Looking at the container it appears that the cause for this is that the > following folder is empty: > /usr/local/lib/python2.7/dist-packages/mayan/settings > That doesn't look right. > > Can someone confirm this observation? > > Cheers, > Jens > A workaround is being tried. Follow issue #6 here: https://gitlab.com/mayan-edms/mayan-edms-docker/issues/6 -- --- You received this message because you are subscribed to the Google Groups "Mayan EDMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
