Skip to content

Commit

Permalink
ci: fix volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Nov 6, 2024
1 parent eba071a commit 3e2dbff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -2319,14 +2319,15 @@ 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.
Args:
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.
Expand All @@ -2346,6 +2347,7 @@ def startOcisService(service = None, name = None, environment = {}):
"commands": [
"ocis/bin/ocis %s server" % service,
],
"volumes": volumes,
},
]

Expand Down

0 comments on commit 3e2dbff

Please sign in to comment.