Path: /tutorials/pods/build-docker-images
Problem
The example repository build-docker-in-runpod failed to build with current Bazel versions.
Bazel 9.0.0 incompatibility
Now Bazelisk downloads 9.0.0 by default which has commands and dependencies incompatible with the example. It rises:
ERROR: No repository visible as '@rules_oci' from main repository
Outdated rules_oci version
The ./WORKSPACE file uses rules_oci-2.0.0-alpha2, which is a outdated one
What to do to fix it
-
Add a .bazelversion file to the example specifying a compatible version (I used 6.4.0 and it worked)
-
update rules_oci to a stable release (e.g., v2.0.1) with correct sha256
Path: /tutorials/pods/build-docker-images
Problem
The example repository build-docker-in-runpod failed to build with current Bazel versions.
Bazel 9.0.0 incompatibility
Now Bazelisk downloads 9.0.0 by default which has commands and dependencies incompatible with the example. It rises:
Outdated
rules_ociversionThe
./WORKSPACEfile usesrules_oci-2.0.0-alpha2, which is a outdated oneWhat to do to fix it
Add a
.bazelversionfile to the example specifying a compatible version (I used6.4.0and it worked)update
rules_ocito a stable release (e.g., v2.0.1) with correct sha256