i’m running bazel and using rules_docker am doing docker_pull. docker_pull has architecture attribute. in CI and some dev machines, the architecture is amd. in new m1 macs, the architecture is arm. how do i configure bazel to pull amd on amd machines and arm on arm machines? Source: Docker..
i’ve tried to load io_bazel_rules_docker to push a container i have in bazel. And the thing that have me stuck is the bazel_skylib dependency. The error is that is not found, i’ve tried everything, adding it to my Workspace, copying it in my directory and it doesn’t work. This is my Workspace part where i ..
I’m converting a Dockerfile to a bazel container_image rule. How would I specify a RUN specification for container_image? Source: Dockerfile..
I am trying to create a docker image out of a mostly-go source base. The problem is that the go code also calls a C++ library (libsodium), so the generated container lacks libstdc++. Here is my approach: first, I bundle the distroless go image with a few things created with pkg_tar(): container_image( name = "new_base_image", ..
I’m trying to build tensorflow from source in a docker container. To download some packages, I set the proxy to https://127.0.0.1:8118 (which points to Tor vi privoxy). After running: bazel build –config=monolithic //tensorflow/tools/pip_package:build_pip_package I got the following error: ERROR: Analysis of target ‘//tensorflow/tools/pip_package:build_pip_package’ failed; build aborted: error running ‘git fetch origin refs/heads/*:refs/remotes/origin/* refs/tags/*:refs/tags/*’ while working ..
I’ve built a setup to run bazel inside of a docker container. We have multiple people working on the project that are all on different OSes (linux, windows, macos). We also publish to Google Cloud Run, and building all from within docker makes those custom rules much simpler without dealing with different platforms. I use ..
I’m using bazel as my build process for a monorepo, and I’m going to be using App Engine for the client side of the application. – client/ – app.yaml – BUILD – main.py – app/ – angular app cloudbuild.yaml WORKSPACE I’m using pkg_web to package up the client side app, with the app.yaml and main.py ..
I am building a go test package that I would like to have included in a Docker image. The binary can be built using bazel build //testing/e2e:e2e_test. This creates a binary in the bazel_bin folder. Now I would like to take this binary and add it to a docker image… container_image( name = "image", base ..
I have to test Go code using Bazel on Windows Platform to make sure the tests pass on Windows too. However, I have a Mac machine. I have tried VirtualBox/Vagrant setup and shared the directory. I can get Go to work there too. Bazel gives some version conflict with Visual Studio, but I have a ..
I am trying to build a tensorflow library from its github repo : https://github.com/tensorflow/compression, the instructions are available only for a TF1.15 version and the current master version has TF2.1 support which I need. I made some modifications to the example command https://github.com/tensorflow/compression#building-pip-packages and tried to build the pip package with the following command: sudo ..