Source: factory.deploy/extend.substrate/ObjDocker.py
Docker substrate — build/manage images and containers.
The legacy emerge/supervisor/apache template expansion has been
retired. Image builds are now driven by
<package>.deployment.image.* in config.yaml and executed
...
| Method | Signature | Description |
|---|---|---|
| connect | connect() -> bool |
|
| list_instances | list_instances() -> List[Dict[str, Any]] |
|
| get_instance | get_instance(name: str) -> Optional[Dict[str, Any]] |
|
| create_instance | create_instance(config: Dict[str, Any]) -> bool |
|
| start_instance | start_instance(name: str) -> bool |
|
| stop_instance | stop_instance(name: str, force: bool = False) -> bool |
|
| delete_instance | delete_instance(name: str, force: bool = False) -> bool |
|
| execute_command | execute_command(name: str, command: List[str]) -> Optional[Dict[str, Any]] |
|
| health_check | health_check() -> Dict[str, Any] |
|
| get_metrics | get_metrics(name: str) -> Any |
|
| get_active_branch_name | get_active_branch_name() -> str |
|
| get_server_ip | get_server_ip() -> str |
|
| connect_registry | connect_registry(registry_host: str = '') -> bool |
|
| harbor_list_repos | harbor_list_repos() -> List[Dict[str, Any]] |
|
| harbor_list_artifacts | harbor_list_artifacts(repo_name: str) -> List[Dict[str, Any]] |
|
| harbor_scan_results | harbor_scan_results(repo_name: str, tag: str = 'latest') -> Dict[str, Any] |
Fetch Harbor's Trivy scan results. |
| harbor_trigger_scan | harbor_trigger_scan(repo_name: str, tag: str = 'latest') -> bool |
|
| harbor_delete_artifact | harbor_delete_artifact(repo_name: str, reference: str) -> bool |
|
| harbor_gc | harbor_gc() -> bool |
|
| build | build(package: str = '', platform: str = '') -> int |
Build the package image. |
| push | push(package: str = '') -> int |
Push the built image to the configured registry. |
Verify Docker daemon and registry connectivity.
Build the package image.
Push the built image to the registry.
List all repositories in the Harbor project.
Show Harbor scan results for an artifact.
Trigger Harbor garbage collection.