From 02fd26540748b0db8e7d07f8c42f7f2fde5daff9 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Fri, 1 Nov 2019 00:21:43 +0000 Subject: [PATCH] allow for multiple channels in docker-compose --- docker-compose.jsonnet | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-compose.jsonnet b/docker-compose.jsonnet index e5309b8..62401e4 100644 --- a/docker-compose.jsonnet +++ b/docker-compose.jsonnet @@ -25,7 +25,7 @@ }, // Twitch channel to capture - channel:: "desertbus", + channels:: ["desertbus"], // Stream qualities to capture qualities:: ["source", "480p"], @@ -141,8 +141,8 @@ [if $.enabled.downloader then "downloader"]: { image: "quay.io/ekimekim/wubloader-downloader:%s" % $.image_tag, // Args for the downloader: set channel and qualities - command: [ - $.channel, + command: [channel for channel in $.channels] + + [ "--base-dir", "/mnt", "--qualities", std.join(",", $.qualities), "--backdoor-port", std.toString($.backdoor_port), @@ -174,8 +174,8 @@ [if $.enabled.backfiller then "backfiller"]: { image: "quay.io/ekimekim/wubloader-backfiller:%s" % $.image_tag, // Args for the backfiller: set channel and qualities - command: [ - $.channel, + command: [channel for channel in $.channels] + + [ "--base-dir", "/mnt", "--qualities", std.join(",", $.qualities), "--static-nodes", std.join(",", $.peers), @@ -229,7 +229,7 @@ if location != $.default_location ]), $.db_connect, - $.channel, + $.channels[0], // use first element as default channel $.bustime_start, ] + if $.authentication then [] else ["--no-authentication"], // Mount the segments directory at /mnt @@ -267,8 +267,8 @@ [if $.enabled.segment_coverage then "segment_coverage"]: { image: "quay.io/ekimekim/wubloader-segment_coverage:%s" % $.image_tag, // Args for the segment_coverage - command: [ - $.channel, + command: [channel for channel in $.channels] + + [ "--base-dir", "/mnt", "--qualities", std.join(",", $.qualities), ],