Skip to content

Commit

Permalink
Update container for dashboard running (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcspragu authored Dec 29, 2024
1 parent 2625436 commit 104beb1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
10 changes: 7 additions & 3 deletions async/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,17 @@ const (
SurveyDir = ReportDir("survey")

// Outputs
AnalysisOutputDir = ReportDir("analysis-output")
ReportOutputDir = ReportDir("report-output")
SummaryOutputDir = ReportDir("summary-output")
AnalysisOutputDir = ReportDir("analysis-output")
ReportOutputDir = ReportDir("report-output")
DashboardOutputDir = ReportDir("dashboard-output")
SummaryOutputDir = ReportDir("summary-output")
)

func (r *TaskEnv) outputDirs() []string {
return []string{
r.pathForDir(AnalysisOutputDir),
r.pathForDir(ReportOutputDir),
r.pathForDir(DashboardOutputDir),
r.pathForDir(SummaryOutputDir),
}
}
Expand All @@ -322,6 +324,7 @@ func (r *TaskEnv) asEnvVars() []string {
"SURVEY_DIR=" + r.pathForDir(SurveyDir),
"ANALYSIS_OUTPUT_DIR=" + r.pathForDir(AnalysisOutputDir),
"REPORT_OUTPUT_DIR=" + r.pathForDir(ReportOutputDir),
"DASHBOARD_OUTPUT_DIR=" + r.pathForDir(DashboardOutputDir),
"SUMMARY_OUTPUT_DIR=" + r.pathForDir(SummaryOutputDir),
}
}
Expand Down Expand Up @@ -351,6 +354,7 @@ func (r *TaskEnv) makeDirectories() error {

// Outputs
makeDir(AnalysisOutputDir)
makeDir(DashboardOutputDir)
makeDir(ReportOutputDir)
makeDir(SummaryOutputDir)

Expand Down
2 changes: 1 addition & 1 deletion cmd/dashboard/configs/dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ azure_event_topic pacta-events-dev
azure_topic_location centralus-1

azure_storage_account rmipactadev
azure_dest_portfolio_container parsedportfolios
azure_dest_portfolio_container dashboards
2 changes: 1 addition & 1 deletion cmd/dashboard/configs/local.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ azure_event_topic pacta-events-local
azure_topic_location centralus-1

azure_storage_account rmipactalocal
azure_dest_portfolio_container parsedportfolios
azure_dest_portfolio_container dashboards
3 changes: 1 addition & 2 deletions cmd/dashboard/configs/test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ azure_event_topic pacta-events-test
azure_topic_location westeurope-1

azure_storage_account rmipactatest
azure_dest_portfolio_container parsedportfolios

azure_dest_portfolio_container dashboards
3 changes: 3 additions & 0 deletions secrets/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ func parseRunnerConfig(cfg *RawRunnerConfig) (RunnerConfig, error) {
if cfg.Images.ParserName == "" {
return RunnerConfig{}, errors.New("no runner_config.images.parser_name was provided")
}
if cfg.Images.DashboardName == "" {
return RunnerConfig{}, errors.New("no runner_config.images.dashboard_name was provided")
}
if cfg.Images.Registry == "" {
return RunnerConfig{}, errors.New("no runner_config.images.registry was provided")
}
Expand Down

0 comments on commit 104beb1

Please sign in to comment.