zoukankan      html  css  js  c++  java
  • bazel remote executor--- buildfarm( in docker)

      docker pull csuyangpeng/buildfarm

      Build label: 0.24.0
      gcc version 5.4.0
      bazel build //src/main/java/build/buildfarm:buildfarm-server
      bazel-bin/src/main/java/build/buildfarm/buildfarm-server examples/server.config.example
      bazel build //src/main/java/build/buildfarm:buildfarm-worker
      bazel-bin/src/main/java/build/buildfarm/buildfarm-worker examples/worker.config.example
      bazel build ... --spawn_strategy=remote --genrule_strategy=remote --remote_executor=192.168.4.74:8980
      bazel build ... --spawn_strategy=remote --genrule_strategy=remote --strategy=Javac=remote --remote_executor=192.168.4.74:8980
      docker run -d -p 8980:8980 --name buildfarm -v /usr/download/bazel-buildfarm:/buildfarm -v /root:/root -it csuyangpeng/buildfarm
      docker exec -it buildfarm /bin/bash
      docker run -d -p 8980:8980 --name buildfarmtest -it csuyangpeng/buildfarm

    bazel remote executor--- buildfarm
    host A: buildfarm-server
    ActionCacheService updateActionResult
    OperationQueueService put
    ....
    ByteStreamService maybeInstanceRead
    ByteStreamService readLimitedBlob
    ByteStreamService readFrom
    host B: buildfarm-worker
    1652562114660757ReportResultStage uploadOutputs
    122211
    [bazel-out/k8-fastbuild/bin/main/_objs/hello-world/hello-world.pic.d, bazel-out/k8-fastbuild/bin/main/_objs/hello-world/hello-world.pic.o]

    host C: buildfarm-worker
    1652563165592825ReportResultStage uploadOutputs
    122211
    [bazel-out/k8-fastbuild/bin/main/hello-world]

    host D: buildfarm-test
    root@372ae93600e5:/buildfarm/ttt/examples/cpp-tutorial/stage1# bazel build ... --spawn_strategy=remote --genrule_strategy=remote --remote_executor=192.168.4.74:8980
    Starting local Bazel server and connecting to it...
    INFO: Invocation ID: ca035e05-7e4c-42a2-9b7a-19a3b3f91e35
    INFO: Analysed target //main:hello-world (9 packages loaded, 65 targets configured).
    INFO: Found 1 target...
    Target //main:hello-world up-to-date:
    bazel-bin/main/hello-world
    INFO: Elapsed time: 6.237s, Critical Path: 2.76s
    INFO: 2 processes: 2 remote.
    INFO: Build completed successfully, 6 total actions
    请搜索iperf 进行安装相关软件服务 
    172.18.18.100 上执行iperf -s
    然后在其他需要连接到这个机器上的机器执行如下命令 iperf -c 172.18.18.100 -i 1
     
  • 相关阅读:
    阶段3 2.Spring_10.Spring中事务控制_4 spring中事务控制的一组API
    阶段3 2.Spring_10.Spring中事务控制_3 作业-基于注解的AOP实现事务控制及问题分析_下
    阶段3 2.Spring_10.Spring中事务控制_2 作业-基于注解的AOP实现事务控制及问题分析_上
    程序员选择字体的标准是
    高通Audio中ASOC的codec驱动(二)
    HashTree【转】
    什么是负载均衡?【转】
    Linux RCU 机制详解
    如何使用C语言的面向对象
    高通HAL层之bmp18x.cpp
  • 原文地址:https://www.cnblogs.com/cjyp/p/10741372.html
Copyright © 2011-2022 走看看