1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-08-02 12:14:46 +02:00

allow services to spawn more than one container

This commit is contained in:
Robin Appelman 2024-07-03 15:21:35 +02:00
commit e13f53e0e5
14 changed files with 34 additions and 34 deletions

View file

@ -34,7 +34,7 @@ impl ServiceTrait for ClamIcap {
cloud_id: &str,
network: &str,
_config: &HazeConfig,
) -> Result<Option<String>> {
) -> Result<Vec<String>> {
let image = "ghcr.io/icewind1991/icap-clamav-service-tls";
pull_image(docker, image).await?;
let options = Some(CreateContainerOptions {
@ -70,7 +70,7 @@ impl ServiceTrait for ClamIcap {
.start_container::<String>(&id, None)
.await
.into_diagnostic()?;
Ok(Some(id))
Ok(vec![id])
}
fn container_name(&self, cloud_id: &str) -> Option<String> {
@ -122,7 +122,7 @@ impl ServiceTrait for ClamIcapTls {
cloud_id: &str,
network: &str,
_config: &HazeConfig,
) -> Result<Option<String>> {
) -> Result<Vec<String>> {
let image = "ghcr.io/icewind1991/icap-clamav-service-tls";
pull_image(docker, image).await?;
let options = Some(CreateContainerOptions {
@ -158,7 +158,7 @@ impl ServiceTrait for ClamIcapTls {
.start_container::<String>(&id, None)
.await
.into_diagnostic()?;
Ok(Some(id))
Ok(vec![id])
}
fn container_name(&self, cloud_id: &str) -> Option<String> {