20846: Disable workbench1 in `arvados-server boot`.
authorTom Clegg <tom@curii.com>
Wed, 25 Oct 2023 19:52:58 +0000 (15:52 -0400)
committerTom Clegg <tom@curii.com>
Sat, 11 Nov 2023 20:56:55 +0000 (15:56 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/boot/cmd.go
lib/boot/supervisor.go

index 41a2dab5ed0fd0a96d79d0b6341e74b6a79b6d9f..3d653e97af9cc4744ec2aca3113e5d58b15d66e7 100644 (file)
@@ -69,7 +69,7 @@ func (bcmd bootCommand) run(ctx context.Context, prog string, args []string, std
        flags.StringVar(&super.ClusterType, "type", "production", "cluster `type`: development, test, or production")
        flags.StringVar(&super.ListenHost, "listen-host", "127.0.0.1", "host name or interface address for internal services whose InternalURLs are not configured")
        flags.StringVar(&super.ControllerAddr, "controller-address", ":0", "desired controller address, `host:port` or `:port`")
-       flags.BoolVar(&super.NoWorkbench1, "no-workbench1", false, "do not run workbench1")
+       flags.BoolVar(&super.NoWorkbench1, "no-workbench1", true, "do not run workbench1")
        flags.BoolVar(&super.NoWorkbench2, "no-workbench2", false, "do not run workbench2")
        flags.BoolVar(&super.OwnTemporaryDatabase, "own-temporary-database", false, "bring up a postgres server and create a temporary database")
        timeout := flags.Duration("timeout", 0, "maximum time to wait for cluster to be ready")
index e913a7fe0894875d490a933a86030e3a74f7e23b..abec2b0f4a0046919dfadfa182dadce4924ee2f6 100644 (file)
@@ -371,10 +371,7 @@ func (super *Supervisor) runCluster() error {
                }},
        }
        if !super.NoWorkbench1 {
-               tasks = append(tasks,
-                       installPassenger{src: "apps/workbench", varlibdir: "workbench1", depends: []supervisedTask{railsDatabase{}}}, // dependency ensures workbench doesn't delay api install/startup
-                       runPassenger{src: "apps/workbench", varlibdir: "workbench1", svc: super.cluster.Services.Workbench1, depends: []supervisedTask{installPassenger{src: "apps/workbench", varlibdir: "workbench1"}}},
-               )
+               return errors.New("workbench1 is no longer supported")
        }
        if !super.NoWorkbench2 {
                tasks = append(tasks,