From bd66d45945dc186a0d08db7d9845ef657d549577 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Mon, 23 Jan 2023 18:31:14 +0100 Subject: execution-service: add new subcommand execute This subcommand starts a single node remote execution service honoring the just native remote protocol. If the flag --compatible is provided, the execution service will honor the original remote build execution protocol. New command line args supported by this subcommand: -p,--port INT: Execution service will listen to this port. If unset, the service will listen to the first available one. --info-file TEXT: Write the used port, interface, and pid to this file in JSON format. If the file exists, it will be overwritten. -i,--interface TEXT: Interface to use. If unset, the loopback device is used. --pid-file TEXT Write pid to this file in plain txt. If the file exists, it will be overwritten. --tls-server-cert TEXT: Path to the TLS server certificate. --tls-server-key TEXT: Path to the TLS server key. Co-authored by: Klaus Aehlig --- .../execution_api/execution_service/TARGETS | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 src/buildtool/execution_api/execution_service/TARGETS (limited to 'src/buildtool/execution_api/execution_service/TARGETS') diff --git a/src/buildtool/execution_api/execution_service/TARGETS b/src/buildtool/execution_api/execution_service/TARGETS new file mode 100644 index 00000000..91726eac --- /dev/null +++ b/src/buildtool/execution_api/execution_service/TARGETS @@ -0,0 +1,98 @@ +{ "execution_server": + { "type": ["@", "rules", "CC", "library"] + , "name": ["execution_server"] + , "hdrs": ["execution_server.hpp"] + , "srcs": ["execution_server.cpp"] + , "proto": [["@", "bazel_remote_apis", "", "remote_execution_proto"]] + , "stage": ["src", "buildtool", "execution_api", "execution_service"] + , "deps": + [ ["src/buildtool/execution_api/local", "local"] + , ["src/buildtool/logging", "logging"] + ] + , "private-deps": + [ ["src/buildtool/compatibility", "compatibility"] + , ["@", "fmt", "", "fmt"] + , ["src/buildtool/execution_api/local", "garbage_collector"] + ] + } +, "ac_server": + { "type": ["@", "rules", "CC", "library"] + , "name": ["ac_server"] + , "hdrs": ["ac_server.hpp"] + , "srcs": ["ac_server.cpp"] + , "proto": [["@", "bazel_remote_apis", "", "remote_execution_proto"]] + , "stage": ["src", "buildtool", "execution_api", "execution_service"] + , "deps": + [ ["src/buildtool/execution_api/local", "local"] + , ["src/buildtool/logging", "logging"] + ] + , "private-deps": + [["src/buildtool/execution_api/local", "garbage_collector"]] + } +, "cas_server": + { "type": ["@", "rules", "CC", "library"] + , "name": ["cas_server"] + , "hdrs": ["cas_server.hpp"] + , "srcs": ["cas_server.cpp"] + , "proto": [["@", "bazel_remote_apis", "", "remote_execution_proto"]] + , "stage": ["src", "buildtool", "execution_api", "execution_service"] + , "deps": + [ ["src/buildtool/execution_api/local", "local"] + , ["src/buildtool/logging", "logging"] + ] + , "private-deps": + [ ["src/buildtool/compatibility", "compatibility"] + , ["@", "fmt", "", "fmt"] + , ["src/buildtool/execution_api/local", "garbage_collector"] + ] + } +, "server_implementation": + { "type": ["@", "rules", "CC", "library"] + , "name": ["sever_implemenation"] + , "hdrs": ["server_implementation.hpp"] + , "srcs": ["server_implementation.cpp"] + , "stage": ["src", "buildtool", "execution_api", "execution_service"] + , "private-deps": + [ "execution_server" + , "ac_server" + , "cas_server" + , "bytestream_server" + , "capabilities_server" + , ["src/buildtool/execution_api/remote", "config"] + , ["src/buildtool/auth", "auth"] + , ["@", "json", "", "json"] + , ["src/buildtool/execution_api/local", "local"] + , ["@", "grpc", "", "grpc++"] + , ["src/buildtool/execution_api/remote", "config"] + ] + } +, "bytestream_server": + { "type": ["@", "rules", "CC", "library"] + , "name": ["bytestream"] + , "hdrs": ["bytestream_server.hpp"] + , "srcs": ["bytestream_server.cpp"] + , "proto": [["@", "googleapis", "", "google_bytestream_proto"]] + , "stage": ["src", "buildtool", "execution_api", "execution_service"] + , "deps": + [ ["src/buildtool/execution_api/local", "local"] + , ["src/buildtool/logging", "logging"] + ] + , "private-deps": + [ ["src/buildtool/compatibility", "compatibility"] + , ["src/buildtool/execution_api/common", "bytestream-common"] + , ["src/utils/cpp", "tmp_dir"] + , ["@", "fmt", "", "fmt"] + , ["src/buildtool/execution_api/local", "garbage_collector"] + ] + } +, "capabilities_server": + { "type": ["@", "rules", "CC", "library"] + , "name": ["capabilities_server"] + , "hdrs": ["capabilities_server.hpp"] + , "srcs": ["capabilities_server.cpp"] + , "proto": [["@", "bazel_remote_apis", "", "remote_execution_proto"]] + , "stage": ["src", "buildtool", "execution_api", "execution_service"] + , "deps": [["src/buildtool/execution_api/local", "local"]] + , "private-deps": [["src/buildtool/logging", "logging"]] + } +} -- cgit v1.2.3