# ENV OSMLCM_DATABASE_PASSWORD xxx
#storage
-ENV OSMLCM_STORAGE_DRIVER local
-ENV OSMLCM_STORAGE_PATH /app/storage
+ENV OSMLCM_STORAGE_DRIVER local
+ENV OSMLCM_STORAGE_PATH /app/storage
+#ENV OSMLCM_STORAGE_DRIVER mongo
+#ENV OSMNBI_STORAGE_URI mongodb://mongo:27017
+#ENV OSMLCM_STORAGE_COLLECTION files
# message
ENV OSMLCM_MESSAGE_DRIVER kafka
from osm_lcm.lcm_utils import versiontuple, LcmException, TaskRegistry, LcmExceptionExit
from osm_lcm import version as lcm_version, version_date as lcm_version_date
-from osm_common import dbmemory, dbmongo, fslocal, msglocal, msgkafka
+from osm_common import dbmemory, dbmongo, fslocal, fsmongo, msglocal, msgkafka
from osm_common import version as common_version
from osm_common.dbbase import DbException
from osm_common.fsbase import FsException
if config["storage"]["driver"] == "local":
self.fs = fslocal.FsLocal()
self.fs.fs_connect(config["storage"])
+ elif config["storage"]["driver"] == "mongo":
+ self.fs = fsmongo.FsMongo()
+ self.fs.fs_connect(config["storage"])
else:
raise LcmException("Invalid configuration param '{}' at '[storage]':'driver'".format(
config["storage"]["driver"]))