fix http urls
parent
208972e4ab
commit
d9ff500873
|
|
@ -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)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue