Skip to content

Commit

Permalink
Update run.bzl
Browse files Browse the repository at this point in the history
  • Loading branch information
dieend authored Sep 29, 2021
1 parent bdea234 commit 2700e6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/util/run.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def _extract_impl(
extract_file = extract_file or ctx.attr.extract_file
output_file = output_file or ctx.outputs.out
script = script_file or ctx.outputs.script
extra_deps = extra_deps or ctx.attr.extra_deps

toolchain_info = ctx.toolchains["@io_bazel_rules_docker//toolchains/docker:toolchain_type"].info

Expand Down Expand Up @@ -111,6 +112,11 @@ _extract_attrs = {
doc = "Path to file to extract from container.",
mandatory = True,
),
"extra_deps": attr.label_list(
doc = "Extra dependency to be passed as inputs",
mandatory = False,
default = None,
),
"image": attr.label(
executable = True,
doc = "The image to run the commands in.",
Expand Down

0 comments on commit 2700e6b

Please sign in to comment.