ocrd_network.runtime_data.network_services module¶
- class ocrd_network.runtime_data.network_services.DataNetworkService(host: str, port: int, ssh_username: str, ssh_keypath: str, ssh_password: str, cred_username: str, cred_password: str, service_url: str, skip_deployment: bool, pid: Any | None)[source]¶
Bases:
object
- static deploy_docker_service(logger: Logger, service_data: DataMongoDB | DataRabbitMQ, image: str, env: List[str] | None, ports_mapping: Dict | None, detach: bool = True, remove: bool = True) None [source]¶
- static stop_docker_service(logger: Logger, service_data: DataMongoDB | DataRabbitMQ) None [source]¶
- class ocrd_network.runtime_data.network_services.DataMongoDB(host: str, port: int, ssh_username: str | None, ssh_keypath: str | None, ssh_password: str | None, cred_username: str | None, cred_password: str | None, skip_deployment: bool, protocol: str = 'mongodb')[source]¶
Bases:
DataNetworkService
- class ocrd_network.runtime_data.network_services.DataRabbitMQ(host: str, port: int, ssh_username: str | None, ssh_keypath: str | None, ssh_password: str | None, cred_username: str | None, cred_password: str | None, skip_deployment: bool, protocol: str = 'amqp', vhost: str = '/')[source]¶
Bases:
DataNetworkService