ci: update docker image configuration for secure deployments (#5259)
* changes required for openshift to work with read-only dirs
This commit is contained in:
parent
977ba926c6
commit
ba6f5183be
5 changed files with 62 additions and 10 deletions
|
|
@ -62,6 +62,10 @@ class DatabaseService(Service):
|
|||
else:
|
||||
# Construct the path using the langflow directory.
|
||||
self.alembic_log_path = Path(langflow_dir) / alembic_log_file
|
||||
|
||||
# Ensure the directory and file for the alembic log file exists
|
||||
self.alembic_log_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
self.alembic_log_path.touch(exist_ok=True)
|
||||
self._logged_pragma = False
|
||||
|
||||
def reload_engine(self) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue