1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 09:34:08 +02:00

add notify_push service

This commit is contained in:
Robin Appelman 2021-07-30 19:12:58 +02:00
commit 93c20bc530
10 changed files with 224 additions and 45 deletions

View file

@ -1,3 +1,4 @@
use crate::config::HazeConfig;
use crate::image::pull_image;
use crate::service::ServiceTrait;
use crate::Result;
@ -20,7 +21,13 @@ impl ServiceTrait for OnlyOffice {
&[]
}
async fn spawn(&self, docker: &Docker, cloud_id: &str, network: &str) -> Result<String> {
async fn spawn(
&self,
docker: &Docker,
cloud_id: &str,
network: &str,
_config: &HazeConfig,
) -> Result<String> {
let image = "onlyoffice/documentserver";
pull_image(docker, image).await?;
let options = Some(CreateContainerOptions {
@ -55,10 +62,6 @@ impl ServiceTrait for OnlyOffice {
format!("{}-onlyoffice", cloud_id)
}
async fn start_message(&self, _docker: &Docker, _cloud_id: &str) -> Result<Option<String>> {
Ok(None)
}
fn apps(&self) -> &'static [&'static str] {
&["onlyoffice"]
}