mirror of
https://github.com/docker/compose.git
synced 2026-08-31 23:03:55 +00:00
Put all protos inside the protos package
This commit is contained in:
parent
5768ffd526
commit
129e675932
19 changed files with 548 additions and 535 deletions
|
|
@ -1,16 +1,16 @@
|
|||
node_modules/.bin/grpc_tools_node_protoc \
|
||||
--js_out=import_style=commonjs,binary:./grpc \
|
||||
--grpc_out=generate_package_definition:./grpc \
|
||||
-I ../../cli/v1 \
|
||||
-I ../../containers/v1 \
|
||||
../../cli/v1/*.proto \
|
||||
../../containers/v1/*.proto
|
||||
-I ../../protos/cli/v1 \
|
||||
-I ../../protos/containers/v1 \
|
||||
../../protos/cli/v1/*.proto \
|
||||
../../protos/containers/v1/*.proto
|
||||
|
||||
# generate d.ts codes
|
||||
protoc \
|
||||
--plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \
|
||||
--ts_out=generate_package_definition:./grpc \
|
||||
-I ../../cli/v1 \
|
||||
-I ../../containers/v1 \
|
||||
../../cli/v1/*.proto \
|
||||
../../containers/v1/*.proto
|
||||
-I ../../protos/cli/v1 \
|
||||
-I ../../protos/containers/v1 \
|
||||
../../protos/cli/v1/*.proto \
|
||||
../../protos/containers/v1/*.proto
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { ListRequest, ListResponse } from "./grpc/containers_pb";
|
|||
|
||||
let address = process.argv[3] || "unix:///tmp/backend.sock";
|
||||
const ContainersServiceClient = grpc.makeClientConstructor(
|
||||
continersPb["com.docker.api.containers.v1.Containers"],
|
||||
continersPb["com.docker.api.protos.containers.v1.Containers"],
|
||||
"ContainersClient"
|
||||
);
|
||||
const client = (new ContainersServiceClient(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue