Run Bazel inside of Docker container when running Bazel in Local Mode

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • DevProd Build
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently remote and local build environments are very different. Remote builds are executed in a remote execution container and local builds are executed on the host system. Since the build relies on certain system libraries (ex. glibc), the inputs of the build will change between local and remote invocations.

      To workaround this, we may be able to spin up a remote execution container and call Bazel inside of the container, ex in SCons:

      if local_mode:

        run_inside_docker_container("bazel build --config=local //...")

      else:

        subprocess.run("bazel build //...")

       

            Assignee:
            Unassigned
            Reporter:
            Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: