Building and deploying dockerfile from Pod

Has anyone figured out how to properly build and push a dockerfile in a runpod pod? https://docs.runpod.io/tutorials/pods/build-docker-images I'm trying to do this for my custom serverless worker bc my personal pc has some docker issues that i havent figured out over multiple days of debugging (i think wsl got corrupted somehow but that's a different issue). But every time i try to run bazel run //:push_custom_image, it shows the following error:
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:push_custom_image': error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did yo
u mean 'rules_cc'?)]//oci:defs.bzl: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolv
ed: No repository visible as '@rules_oci' from main repository.
ERROR: error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]//oci:defs.bz
l: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolved: No repository visible as '@ru
les_oci' from main repository.
INFO: Elapsed time: 0.065s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:push_custom_image': error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did yo
u mean 'rules_cc'?)]//oci:defs.bzl: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolv
ed: No repository visible as '@rules_oci' from main repository.
ERROR: error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]//oci:defs.bz
l: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolved: No repository visible as '@ru
les_oci' from main repository.
INFO: Elapsed time: 0.065s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
What's the proper set up for a WORKSPACE and BUILD.bazel files to get this properly going?
Build Docker Images on Runpod with Bazel | RunPod Documentation
RunPod's GPU Pods use custom Docker images to run your code.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server