Skip to content

Commit

Permalink
fix(deps): add missing external dependencies for rules_docker (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
ztl8702 authored Jul 24, 2020
1 parent 4655fdb commit d768faf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .azure/pipelines/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ steps:

- script: |
echo "startup --output_base=$(BAZEL_OUTPUT_BASE)
common --disk_cache=$(BAZEL_DISK_CACHE)
common --color=no
common --curses=yes
build --disk_cache=$(BAZEL_DISK_CACHE)
build --show_progress_rate_limit=0
build --show_task_finish
build --show_timestamps
Expand All @@ -71,6 +71,7 @@ steps:
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt update && sudo apt install -y bazel ffmpeg
bazel version
displayName: 'Install bazel, ffmpeg'

- script: |
Expand Down
22 changes: 18 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,15 @@ rules_typescript_proto_dependencies()
# docker
###################################

# Download the rules_docker repository at release v0.14.4
RULES_DOCKER_VERSION = "0.14.4"

RULES_DOCKER_SHA256 = "123"

http_archive(
name = "io_bazel_rules_docker",
#sha256 = "6287241e033d247e9da5ff705dd6ef526bac39ae82f3d17de1b69f8cb313f9cd",
strip_prefix = "rules_docker-0.14.4",
urls = ["https://" + GITHUB_COM + "/bazelbuild/rules_docker/releases/download/v0.14.3/rules_docker-v0.14.4.tar.gz"],
#sha256 = RULES_DOCKER_SHA256,
strip_prefix = "rules_docker-%s" % RULES_DOCKER_VERSION,
urls = ["https://%s/bazelbuild/rules_docker/releases/download/v%s/rules_docker-v%s.tar.gz" % (GITHUB_COM, RULES_DOCKER_VERSION, RULES_DOCKER_VERSION)],
)

load(
Expand All @@ -197,6 +200,17 @@ load(

container_repositories()

load(
"@io_bazel_rules_docker//repositories:deps.bzl",
container_deps = "deps",
)

container_deps()

load("@io_bazel_rules_docker//repositories:pip_repositories.bzl", "pip_deps")

pip_deps()

load(
"@io_bazel_rules_docker//nodejs:image.bzl",
_nodejs_image_repos = "repositories",
Expand Down

0 comments on commit d768faf

Please sign in to comment.