Skip to content

Commit

Permalink
Merge pull request #7 from rujche/rujche/java-analyzer
Browse files Browse the repository at this point in the history
Support monolithic web application with Database access - MongoDB - Password
  • Loading branch information
rujche authored Oct 12, 2024
2 parents 207ffa3 + c45382a commit dca325f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cli/azd/internal/appdetect/appdetect.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ func enrichFromJavaProject(azureYaml javaanalyze.AzureYaml, project *Project) {
project.DatabaseDeps = append(project.DatabaseDeps, DbMySql)
} else if resource.GetType() == "PostgreSQL" {
project.DatabaseDeps = append(project.DatabaseDeps, DbPostgres)
} else if resource.GetType() == "MongoDB" {
project.DatabaseDeps = append(project.DatabaseDeps, DbMongo)
} else if resource.GetType() == "SQL Server" {
project.DatabaseDeps = append(project.DatabaseDeps, DbSqlServer)
} else if resource.GetType() == "Redis" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func Analyze(path string) []AzureYaml {
&ruleService{},
&ruleMysql{},
&rulePostgresql{},
&ruleMongo{},
&ruleStorage{},
&ruleServiceBusScsb{},
}
Expand Down
4 changes: 0 additions & 4 deletions cli/azd/resources/scaffold/templates/main.bicept
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,4 @@ module {{bicepName .Name}} './app/{{.Name}}.bicep' = {
output AZURE_CONTAINER_REGISTRY_ENDPOINT string = registry.outputs.loginServer
output AZURE_KEY_VAULT_NAME string = keyVault.outputs.name
output AZURE_KEY_VAULT_ENDPOINT string = keyVault.outputs.endpoint
output APPLICATIONINSIGHTS_CONNECTION_STRING string = monitoring.outputs.connectionString
{{- range .Services}}
output {{bicepName .Name}}_uri string = {{bicepName .Name}}.outputs.uri
{{- end}}
{{ end}}

0 comments on commit dca325f

Please sign in to comment.