Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-88216

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

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

      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 Unassigned
            Reporter:
            zack.winter@mongodb.com Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: