Skip to content

Commit

Permalink
Name analyzer container (#327)
Browse files Browse the repository at this point in the history
name analyzer container

Signed-off-by: Emily McMullan <[email protected]>
  • Loading branch information
eemcmullan authored Sep 9, 2024
1 parent 65dc385 commit ccaf5c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,7 @@ func (a *analyzeCommand) RunAnalysisOverrideProviderSettings(ctx context.Context
container.WithStdout(analysisLog),
container.WithStderr(analysisLog),
container.WithEntrypointArgs(args...),
container.WithName(fmt.Sprintf("analyzer-%v", container.RandomName())),
container.WithEntrypointBin("/usr/local/bin/konveyor-analyzer"),
container.WithNetwork("host"),
container.WithContainerToolBin(Settings.ContainerBinary),
Expand Down Expand Up @@ -1477,6 +1478,7 @@ func (a *analyzeCommand) RunAnalysis(ctx context.Context, xmlOutputDir string, v
container.WithVolumes(volumes),
container.WithStdout(analysisLog),
container.WithStderr(analysisLog),
container.WithName(fmt.Sprintf("analyzer-%v", container.RandomName())),
container.WithEntrypointArgs(args...),
container.WithEntrypointBin("/usr/local/bin/konveyor-analyzer"),
container.WithNetwork(networkName),
Expand Down Expand Up @@ -2077,6 +2079,7 @@ func (a *analyzeCommand) analyzeDotnetFramework(ctx context.Context) error {
container.WithContainerToolBin(Settings.ContainerBinary),
container.WithEntrypointArgs([]string{fmt.Sprintf("--port=%v", port)}...),
container.WithDetachedMode(true),
container.WithName(fmt.Sprintf("provider-%v", container.RandomName())),
container.WithCleanup(a.cleanup),
container.WithNetwork(networkName),
)
Expand Down Expand Up @@ -2200,6 +2203,7 @@ func (a *analyzeCommand) analyzeDotnetFramework(ctx context.Context) error {
container.WithImage(Settings.RunnerImage),
container.WithLog(a.log.V(1)),
container.WithVolumes(volumes),
container.WithName(fmt.Sprintf("analyzer-%v", container.RandomName())),
container.WithStdout(analysisLog),
container.WithStderr(analysisLog),
container.WithEntrypointArgs(args...),
Expand Down

0 comments on commit ccaf5c2

Please sign in to comment.