Formatting
This commit is contained in:
@@ -26,6 +26,7 @@ def build_container_routing_labels(prefix: str, strip_prefix=True):
|
||||
|
||||
return labels
|
||||
|
||||
|
||||
def stop_container(docker_id):
|
||||
try:
|
||||
client = docker.from_env()
|
||||
@@ -53,7 +54,10 @@ def start_foundry_container(table: GameTable, key: KeyTable, version=12):
|
||||
image = "felddy/foundryvtt:{version}".format(version=version)
|
||||
labels = build_container_routing_labels(table.game_table_link, False)
|
||||
os.makedirs("/data/" + table.game_table_link + "/Config", exist_ok=True)
|
||||
shutil.copyfile(src="/data/keys/" + key.key_file, dst="/data/"+table.game_table_link+"/Config/license.json")
|
||||
shutil.copyfile(
|
||||
src="/data/keys/" + key.key_file,
|
||||
dst="/data/" + table.game_table_link + "/Config/license.json",
|
||||
)
|
||||
volumes = {
|
||||
"/home/cow/Projects/dockertesting/data/{prefix}".format(
|
||||
prefix=table.game_table_link
|
||||
|
||||
Reference in New Issue
Block a user