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
posted on 2019-04-20 16:20 csuyangpeng 阅读(431) 评论(0) 编辑 收藏 举报