fix http urls

master
Clemens Klug 2018-07-23 14:55:22 +02:00
parent 208972e4ab
commit d9ff500873
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ def parse_dockerfile(f):
if not f.endswith(DOCKERFILE): if not f.endswith(DOCKERFILE):
log.warn(f"guessing Döckerfile… {f}") log.warn(f"guessing Döckerfile… {f}")
f = os.path.join(f, DOCKERFILE) f = os.path.join(f, DOCKERFILE)
if f.startswith("http"):
log.warn("HTTP sources are not yet supported")
return [f]
keyword = "FROM" keyword = "FROM"
with open(f, "r") as src: with open(f, "r") as src:
sources = [source_to_image(line) for line in src if line.strip().startswith(keyword)] sources = [source_to_image(line) for line in src if line.strip().startswith(keyword)]