Skip to content

Commit

Permalink
das-toolbox-136: Fix dbms-peer was not loaded into the database conne…
Browse files Browse the repository at this point in the history
…cted to das-peer
  • Loading branch information
levisingularity committed Nov 22, 2024
1 parent e2d49be commit 342b2f9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
8 changes: 7 additions & 1 deletion src/commands/dbms_adapter/dbms_adapter_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,11 @@ def _dbms_peer_container_manager_factory(
self,
) -> DbmsPeerContainerManager:
container_name = self._settings.get("dbms_peer.container_name")
adapter_server_port = 30100

return DbmsPeerContainerManager(container_name)
return DbmsPeerContainerManager(
container_name,
options={
"das_peer_port": adapter_server_port,
},
)
22 changes: 12 additions & 10 deletions src/commands/dbms_adapter/dbms_peer/dbms_peer_container_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,21 @@ def start_container(
context_target_path,
]

volumes = {
file.name: {
"bind": secrets_target_path,
"mode": "ro",
},
context: {
"bind": context_target_path,
"mode": "ro",
},
}

container = self._start_container(
command=command_params,
network_mode="host",
volumes={
file.name: {
"bind": secrets_target_path,
"mode": "ro",
},
context: {
"bind": context_target_path,
"mode": "ro",
},
},
volumes=volumes,
)

self.logs()
Expand Down

0 comments on commit 342b2f9

Please sign in to comment.