You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix installer tracetest dev docker warning and add options to run installer directly without user input. (#2462)
* Adding options to run installer with previously chosen options
* Adding empty TRACETEST_DEV env when loading docker-compose on installation to avoid warning
// these commands will not have shorthand parameters to avoid colision with existing ones in other commands
35
+
serverInstallCmd.Flags().Var(&installationMode, "mode", "Indicate the type of demo environment to be installed with Tracetest. It can be 'with-demo' or 'just-tracetest'.")
36
+
serverInstallCmd.Flags().Var(&runEnvironment, "run-environment", "Type of environment were Tracetest will be installed. It can be 'docker' or 'kubernetes'.")
ifInstallationMode==WithoutDemoInstallationModeType { // check if it was previously chosen
102
+
ui.Println("Do you have OpenTelemetry based tracing already set up, or would you like us to install a demo tracing environment and app?")
103
+
ui.Println(" > I have a tracing environment already. Just install Tracetest")
104
+
config.set("installer.only_tracetest", true)
105
+
return
106
+
}
107
+
108
+
ifInstallationMode==WithDemoInstallationModeType { // check if it was previously chosen
109
+
ui.Println("Do you have OpenTelemetry based tracing already set up, or would you like us to install a demo tracing environment and app?")
110
+
ui.Println(" > Just learning tracing! Install Tracetest, OpenTelemetry Collector and the sample app.")
111
+
config.set("installer.only_tracetest", false)
112
+
return
113
+
}
114
+
85
115
option:=ui.Select("Do you have OpenTelemetry based tracing already set up, or would you like us to install a demo tracing environment and app?", []cliUI.Option{
86
-
{"I have a tracing environment already. Just install Tracetest", func(ui cliUI.UI) {
116
+
{Text: "I have a tracing environment already. Just install Tracetest",Fn:func(ui cliUI.UI) {
87
117
config.set("installer.only_tracetest", true)
88
118
}},
89
-
{"Just learning tracing! Install Tracetest, OpenTelemetry Collector and the sample app.", func(ui cliUI.UI) {
119
+
{Text: "Just learning tracing! Install Tracetest, OpenTelemetry Collector and the sample app.",Fn:func(ui cliUI.UI) {
0 commit comments