From d9ff5008737c94ba73bc7f84e143a173c71182a1 Mon Sep 17 00:00:00 2001 From: Clemens Klug Date: Mon, 23 Jul 2018 14:55:22 +0200 Subject: [PATCH] fix http urls --- docker-compose.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.py b/docker-compose.py index 2ee1380..af8238d 100644 --- a/docker-compose.py +++ b/docker-compose.py @@ -33,6 +33,9 @@ def parse_dockerfile(f): if not f.endswith(DOCKERFILE): log.warn(f"guessing Döckerfile… {f}") f = os.path.join(f, DOCKERFILE) + if f.startswith("http"): + log.warn("HTTP sources are not yet supported") + return [f] keyword = "FROM" with open(f, "r") as src: sources = [source_to_image(line) for line in src if line.strip().startswith(keyword)]