Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #683 from gtardif/volumes-grpc
Browse files Browse the repository at this point in the history
Volumes grpc interface
  • Loading branch information
gtardif authored Sep 28, 2020
2 parents 0d2e951 + b9d6c2e commit 50c80b8
Show file tree
Hide file tree
Showing 7 changed files with 983 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
containersv1 "github.com/docker/compose-cli/protos/containers/v1"
contextsv1 "github.com/docker/compose-cli/protos/contexts/v1"
streamsv1 "github.com/docker/compose-cli/protos/streams/v1"
volumesv1 "github.com/docker/compose-cli/protos/volumes/v1"
"github.com/docker/compose-cli/server"
"github.com/docker/compose-cli/server/proxy"
)
Expand Down Expand Up @@ -64,8 +65,9 @@ func runServe(ctx context.Context, opts serveOpts) error {
p := proxy.New(ctx)

containersv1.RegisterContainersServer(s, p)
streamsv1.RegisterStreamingServer(s, p)
contextsv1.RegisterContextsServer(s, p.ContextsProxy())
streamsv1.RegisterStreamingServer(s, p)
volumesv1.RegisterVolumesServer(s, p)

go func() {
<-ctx.Done()
Expand Down
Loading

0 comments on commit 50c80b8

Please sign in to comment.