ci: update docker image configuration for secure deployments (#5259)

* changes required for openshift to work with read-only dirs
This commit is contained in:
Jordan Frazier 2024-12-13 14:38:55 -08:00 committed by GitHub
commit ba6f5183be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 62 additions and 10 deletions

View file

@ -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: