Skip to content

Commit

Permalink
appsetings
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Vaughan committed Apr 29, 2024
1 parent c583702 commit 0ba4de7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DARE-FrontEnd/Controllers/SubmissionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public async Task<ActionResult> AddiSubmissionWizard(AddiSubmissionWizard model,

var QueryExecutor = new TesExecutor()
{
Image = _URLSettingsFrontEnd.QueryImage,
Image = _URLSettingsFrontEnd.QueryImageGraphQL,
Command = new List<string>
{
"/usr/bin/dotnet",
Expand All @@ -290,7 +290,7 @@ public async Task<ActionResult> AddiSubmissionWizard(AddiSubmissionWizard model,

if (SQL == "true")
{
QueryExecutor.Image = _URLSettingsFrontEnd.QueryImage;
QueryExecutor.Image = _URLSettingsFrontEnd.QueryImageSQL;
QueryExecutor.Command = new List<string>()
{
"/bin/bash",
Expand Down
4 changes: 3 additions & 1 deletion src/DARE-FrontEnd/Models/URLSettingsFrontEnd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
public class URLSettingsFrontEnd
{
public string MinioUrl { get; set; }
public string QueryImage { get; set; }
public string QueryImageGraphQL { get; set; }

public string QueryImageSQL { get; set; }
}
}
3 changes: 2 additions & 1 deletion src/DARE-FrontEnd/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
},
"URLSettingsFrontEnd": {
"MinioUrl": "localhost:9001",
"QueryImage": "harbor.ukserp.ac.uk/dare-trefx/control-tre-hasura:1.33.1"
"QueryImageGraphQL": "harbor.ukserp.ac.uk/dare-trefx/control-tre-hasura:1.33.1",
"QueryImageSQL": "ukserp/runsql:1.0.0"
}
}

0 comments on commit 0ba4de7

Please sign in to comment.