Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Create a bazel rule for container diff #104

Conversation

priyawadhwa
Copy link
Contributor

Creates a bazel rule to diff an image built by bazel (as a tar) against an image in production with container-diff.

docker_diff.bzl Outdated
image_location = ctx.executable.image.short_path
cd_binary_loction = ctx.executable._container_diff_tool.short_path

content = "%s diff %s %s" % (cd_binary_loction, image_location, ctx.attr.diff_base)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this a multi-line string, with a #!/bin/bash header and a set-e line?

docker_diff.bzl Outdated
allow_files = [".tar"],
single_file = True,
mandatory = True,
executable = True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need executable since we're requiring the .tar?

@priyawadhwa priyawadhwa force-pushed the container-diff-bazel-rule branch from 8f5dd14 to 545765d Compare September 29, 2017 22:16
@priyawadhwa priyawadhwa merged commit aab714c into GoogleContainerTools:master Oct 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants