Images don’t need a unique tag

This commit is contained in:
Simon Sapin 2018-09-12 20:23:10 +02:00
parent d7ab25608f
commit cf97373cff
2 changed files with 3 additions and 4 deletions

View file

@ -64,17 +64,16 @@ def create_task_with_in_tree_dockerfile(name, command, image, **kwargs):
def build_image(name):
with open(os.path.join(REPO, "docker", name, "Dockerfile"), "rb") as f:
with open(os.path.join(REPO, name + ".dockerfile"), "rb") as f:
dockerfile = f.read()
image_build_task = create_task(
"docker image build task for image: " + name,
"""
echo "$DOCKERFILE" | docker build -t "$IMAGE" -
docker save "$IMAGE" | lz4 > /%s
echo "$DOCKERFILE" | docker build -t taskcluster-built -
docker save taskcluster-built | lz4 > /%s
""" % IMAGE_ARTIFACT_FILENAME,
env={
"IMAGE": name,
"DOCKERFILE": dockerfile,
},
artifacts=[