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

Commit

Permalink
Add volume as a new served API, use one of in proto for context spe…
Browse files Browse the repository at this point in the history
…cific parameters, proxy volume creation

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
  • Loading branch information
gtardif committed Sep 28, 2020
1 parent b87f827 commit 4838da9
Show file tree
Hide file tree
Showing 10 changed files with 269 additions and 127 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
5 changes: 3 additions & 2 deletions protos/compose/v1/compose.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions protos/containers/v1/containers.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions protos/contexts/v1/contexts.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions protos/streams/v1/streams.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4838da9

Please sign in to comment.