diff --git a/.drone.star b/.drone.star index 97bed0d7229..9d0cae13978 100644 --- a/.drone.star +++ b/.drone.star @@ -2217,7 +2217,7 @@ def notify(ctx): }, } -def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on = [], deploy_type = "", extra_server_environment = {}, with_wrapper = False, tika_enabled = False): +def ocisServer(storage = "ocis", accounts_hash_difficulty = 4, volumes = [], depends_on = [], deploy_type = "", extra_server_environment = {}, with_wrapper = False, tika_enabled = False): user = "0:0" container_name = "ocis-server" environment = { @@ -2319,7 +2319,7 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on = wait_for_ocis, ] -def startOcisService(service = None, name = None, environment = {}): +def startOcisService(service = None, name = None, environment = {}, volumes = []): """ Starts an OCIS service in a detached container. @@ -2327,6 +2327,7 @@ def startOcisService(service = None, name = None, environment = {}): service (str): The name of the service to start. name (str): The name of the container. environment (dict): The environment variables to set in the container. + volumes (list): The volumes to mount in the container. Returns: list: A list of pipeline steps to start the service. @@ -2346,6 +2347,7 @@ def startOcisService(service = None, name = None, environment = {}): "commands": [ "ocis/bin/ocis %s server" % service, ], + "volumes": volumes, }, ]