Skip to content

Commit

Permalink
Upload uncompressed Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Nov 4, 2019
1 parent 4ad08ff commit 5abb013
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions etc/taskcluster/decisionlib.py
Expand Up @@ -755,24 +755,24 @@ def with_dockerfile(self, dockerfile):
.with_index_and_artifacts_expire_in(CONFIG.docker_images_expire_in)
.with_features("dind")
.with_env(DOCKERFILE=dockerfile_contents)
.with_artifacts("/image.tar.lz4")
.with_artifacts("/image.tar")
.with_script("""
echo "$DOCKERFILE" | docker build -t taskcluster-built -
docker save taskcluster-built | lz4 > /image.tar.lz4
docker save taskcluster-built > /image.tar
""")
.with_docker_image(
# https://github.com/servo/taskcluster-bootstrap-docker-images#image-builder
"servobrowser/taskcluster-bootstrap:image-builder@sha256:" \
"0a7d012ce444d62ffb9e7f06f0c52fedc24b68c2060711b313263367f7272d9d"
)
.find_or_create("docker-image." + digest)
.find_or_create("docker-image-uncompressed." + digest)
)

return self \
.with_dependencies(image_build_task) \
.with_docker_image({
"type": "task-image",
"path": "public/image.tar.lz4",
"path": "public/image.tar",
"taskId": image_build_task,
})

Expand Down

0 comments on commit 5abb013

Please sign in to comment.