From 3eb490153def635a938fb33570fa1330a051a125 Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Tue, 25 Jul 2023 21:15:21 +0900 Subject: [PATCH] remote controller: Fix entrypoint interaction bugs Signed-off-by: Kohei Tokunaga --- build/result.go | 2 +- commands/build.go | 4 + controller/pb/controller.pb.go | 239 +++++++++++++++++---------------- controller/pb/controller.proto | 1 + monitor/commands/exec.go | 1 + monitor/commands/rollback.go | 1 + monitor/monitor.go | 1 + 7 files changed, 133 insertions(+), 116 deletions(-) diff --git a/build/result.go b/build/result.go index 3cd37b7b..f76aab6a 100644 --- a/build/result.go +++ b/build/result.go @@ -388,7 +388,7 @@ func populateProcessConfigFromResult(req *gateway.StartRequest, res *gateway.Res } else if img != nil { args = append(args, img.Config.Entrypoint...) } - if cfg.Cmd != nil { + if !cfg.NoCmd { args = append(args, cfg.Cmd...) } else if img != nil { args = append(args, img.Config.Cmd...) diff --git a/commands/build.go b/commands/build.go index 7feee06e..df871971 100644 --- a/commands/build.go +++ b/commands/build.go @@ -698,6 +698,7 @@ func (cfg *invokeConfig) needsMonitor(retErr error) bool { func parseInvokeConfig(invoke string) (cfg invokeConfig, err error) { cfg.invokeFlag = invoke cfg.Tty = true + cfg.NoCmd = true switch invoke { case "default", "debug-shell": return cfg, nil @@ -706,6 +707,7 @@ func parseInvokeConfig(invoke string) (cfg invokeConfig, err error) { // TODO: make this configurable via flags or restorable from LLB. // Discussion: https://github.com/docker/buildx/pull/1640#discussion_r1113295900 cfg.Cmd = []string{"/bin/sh"} + cfg.NoCmd = false return cfg, nil } @@ -731,10 +733,12 @@ func parseInvokeConfig(invoke string) (cfg invokeConfig, err error) { switch key { case "args": cfg.Cmd = append(cfg.Cmd, maybeJSONArray(value)...) + cfg.NoCmd = false case "entrypoint": cfg.Entrypoint = append(cfg.Entrypoint, maybeJSONArray(value)...) if cfg.Cmd == nil { cfg.Cmd = []string{} + cfg.NoCmd = false } case "env": cfg.Env = append(cfg.Env, maybeJSONArray(value)...) diff --git a/controller/pb/controller.pb.go b/controller/pb/controller.pb.go index 03194937..f51e316b 100644 --- a/controller/pb/controller.pb.go +++ b/controller/pb/controller.pb.go @@ -1527,6 +1527,7 @@ func (m *InitMessage) GetInvokeConfig() *InvokeConfig { type InvokeConfig struct { Entrypoint []string `protobuf:"bytes,1,rep,name=Entrypoint,proto3" json:"Entrypoint,omitempty"` Cmd []string `protobuf:"bytes,2,rep,name=Cmd,proto3" json:"Cmd,omitempty"` + NoCmd bool `protobuf:"varint,11,opt,name=NoCmd,proto3" json:"NoCmd,omitempty"` Env []string `protobuf:"bytes,3,rep,name=Env,proto3" json:"Env,omitempty"` User string `protobuf:"bytes,4,opt,name=User,proto3" json:"User,omitempty"` NoUser bool `protobuf:"varint,5,opt,name=NoUser,proto3" json:"NoUser,omitempty"` @@ -1578,6 +1579,13 @@ func (m *InvokeConfig) GetCmd() []string { return nil } +func (m *InvokeConfig) GetNoCmd() bool { + if m != nil { + return m.NoCmd + } + return false +} + func (m *InvokeConfig) GetEnv() []string { if m != nil { return m.Env @@ -2046,125 +2054,126 @@ func init() { func init() { proto.RegisterFile("controller.proto", fileDescriptor_ed7f10298fa1d90f) } var fileDescriptor_ed7f10298fa1d90f = []byte{ - // 1881 bytes of a gzipped FileDescriptorProto + // 1890 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x5f, 0x6f, 0xdb, 0xc8, 0x11, 0x2f, 0x25, 0x59, 0x7f, 0x46, 0x96, 0xe3, 0x6c, 0x9d, 0x74, 0xc3, 0xa4, 0x17, 0x87, 0x49, 0xae, 0x42, 0x53, 0x48, 0x77, 0xbe, 0xa6, 0xbe, 0x5c, 0xee, 0x80, 0xda, 0xb2, 0x05, 0xfb, 0x90, 0xd8, 0xc6, 0xca, 0xc9, 0xa1, 0x2d, 0xd0, 0x80, 0x92, 0xd6, 0x32, 0x21, 0x8a, 0xab, 0x72, 0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, 0xf3, 0xf5, 0x0a, + 0xd1, 0x02, 0xfa, 0x15, 0x94, 0x76, 0x84, 0xa0, 0x5c, 0x70, 0x5c, 0x54, 0xce, 0x9e, 0x2c, 0x76, + 0xa6, 0x41, 0x24, 0x02, 0xa3, 0x63, 0xa8, 0x28, 0xff, 0x3b, 0xe1, 0x80, 0xe3, 0x92, 0x62, 0x7e, + 0x79, 0x8b, 0x6d, 0xc6, 0x1c, 0xbd, 0xc5, 0x99, 0x0d, 0xb4, 0x0f, 0x95, 0x96, 0xdb, 0x3b, 0xa7, + 0xed, 0x90, 0x8d, 0x70, 0x59, 0x19, 0xfc, 0xd9, 0x62, 0x83, 0x0a, 0x66, 0x0c, 0x1a, 0x33, 0x31, + 0x13, 0xed, 0x40, 0x49, 0x09, 0xa7, 0x0c, 0x57, 0xee, 0x66, 0x24, 0xe2, 0x21, 0x07, 0x56, 0x5b, + 0x83, 0x90, 0x4d, 0xc6, 0x27, 0x6e, 0x48, 0x03, 0x81, 0x41, 0xbd, 0xea, 0x94, 0x0e, 0xbd, 0x85, + 0xd2, 0xfe, 0xd5, 0x98, 0x85, 0x82, 0xe3, 0xea, 0xb2, 0xcb, 0xab, 0x41, 0xc6, 0x81, 0x61, 0xa0, + 0xcf, 0x00, 0xf6, 0xaf, 0x44, 0xe8, 0x1e, 0x30, 0x79, 0xec, 0xab, 0xea, 0x75, 0x24, 0x34, 0xa8, + 0x0d, 0xc5, 0x77, 0x6e, 0x97, 0xfa, 0x1c, 0xd7, 0x94, 0xed, 0xc6, 0x2d, 0x0e, 0x56, 0x13, 0xb4, + 0x23, 0xc3, 0x96, 0x79, 0x7d, 0x44, 0xc5, 0x25, 0x0b, 0x87, 0xef, 0x59, 0x9f, 0xe2, 0x35, 0x9d, + 0xd7, 0x09, 0x15, 0x7a, 0x01, 0xb5, 0x23, 0xa6, 0x0f, 0xcf, 0xf3, 0x05, 0x0d, 0xf1, 0x3d, 0xb5, + 0x99, 0xb4, 0x52, 0xdd, 0x65, 0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 0xc2, 0xcc, 0xd0, 0xfb, 0x14, 0xaa, 0xf2, + 0x23, 0x21, 0x9b, 0xe6, 0xc0, 0xaa, 0x06, 0x98, 0x93, 0x41, 0x50, 0x18, 0xd2, 0xa9, 0xce, 0x86, + 0x0a, 0x51, 0x6b, 0xe7, 0x6f, 0x96, 0x9c, 0xf5, 0xc7, 0x13, 0xf1, 0x9e, 0x72, 0xee, 0x0e, 0x64, + 0x02, 0x16, 0x0e, 0x03, 0x4f, 0x98, 0xec, 0xfb, 0x3c, 0x6b, 0xe6, 0x1f, 0x4f, 0x84, 0x84, 0x19, + 0xd6, 0xc1, 0x8f, 0x88, 0x62, 0xa1, 0x6d, 0x28, 0xec, 0xb9, 0xc2, 0x35, 0xb9, 0x90, 0x31, 0xe1, + 0x48, 0x44, 0x82, 0x28, 0xc5, 0xdd, 0x92, 0xfc, 0xb0, 0x19, 0x4f, 0x84, 0xf3, 0x02, 0xd6, 0xaf, + 0x5b, 0x5f, 0x10, 0xda, 0x57, 0x50, 0x4d, 0x58, 0x51, 0xf7, 0xf6, 0xb8, 0xad, 0x00, 0x65, 0x22, + 0x97, 0x32, 0xd6, 0x78, 0x23, 0xab, 0xda, 0x87, 0x73, 0x0f, 0x6a, 0xca, 0x74, 0x7c, 0x82, 0x7f, + 0xca, 0x41, 0x29, 0x32, 0xb1, 0x9d, 0x8a, 0xfb, 0x59, 0x56, 0xdc, 0xf3, 0x21, 0xbf, 0x86, 0x82, + 0xac, 0x1f, 0x26, 0xe4, 0x8c, 0xf1, 0xa0, 0xdd, 0x4f, 0xd0, 0x24, 0x1c, 0x7d, 0x07, 0x45, 0x42, + 0xb9, 0x1c, 0x65, 0xf4, 0xd0, 0xff, 0x7c, 0x31, 0x51, 0x63, 0x66, 0x64, 0x43, 0x92, 0xf4, 0x8e, + 0x37, 0x08, 0x5c, 0x1f, 0x17, 0x96, 0xd1, 0x35, 0x26, 0x41, 0xd7, 0x8a, 0xd9, 0x71, 0xff, 0xc5, + 0x82, 0x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reference imports to suppress errors if they are not otherwise used. diff --git a/controller/pb/controller.proto b/controller/pb/controller.proto index 2300b7ed..66fc1a09 100644 --- a/controller/pb/controller.proto +++ b/controller/pb/controller.proto @@ -192,6 +192,7 @@ message InitMessage { message InvokeConfig { repeated string Entrypoint = 1; repeated string Cmd = 2; + bool NoCmd = 11; // Do not set cmd but use the image's default repeated string Env = 3; string User = 4; bool NoUser = 5; // Do not set user but use the image's default diff --git a/monitor/commands/exec.go b/monitor/commands/exec.go index 3d274d4d..1b9dd4db 100644 --- a/monitor/commands/exec.go +++ b/monitor/commands/exec.go @@ -41,6 +41,7 @@ func (cm *ExecCmd) Exec(ctx context.Context, args []string) error { cfg := controllerapi.InvokeConfig{ Entrypoint: []string{args[1]}, Cmd: args[2:], + NoCmd: false, // TODO: support other options as well via flags Env: cm.invokeConfig.Env, User: cm.invokeConfig.User, diff --git a/monitor/commands/rollback.go b/monitor/commands/rollback.go index 8633a6e8..0ac986a4 100644 --- a/monitor/commands/rollback.go +++ b/monitor/commands/rollback.go @@ -47,6 +47,7 @@ func (cm *RollbackCmd) Exec(ctx context.Context, args []string) error { if len(cmds) > 0 { cfg.Entrypoint = []string{cmds[0]} cfg.Cmd = cmds[1:] + cfg.NoCmd = false } } id := cm.m.Rollback(ctx, cfg) diff --git a/monitor/monitor.go b/monitor/monitor.go index 9652d779..f856682d 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -283,6 +283,7 @@ func (m *monitor) startInvoke(ctx context.Context, pid string, cfg controllerapi if len(cfg.Entrypoint) == 0 && len(cfg.Cmd) == 0 { cfg.Entrypoint = []string{"sh"} // launch shell by default cfg.Cmd = []string{} + cfg.NoCmd = false } go func() { // Start a new invoke