-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/downloader manifest 1014 (#655)
* adding appsettings to could * using config file for clouds * using the s3 bucket as default for lambdas * using default s3 base url from config file * using Cloud in Downloader * fixing downloader manifest path * adding index for gsa files * adding check for index file * fixing texts * ensuring consistency
- Loading branch information
1 parent
b8a5fcb
commit a0e6e36
Showing
15 changed files
with
158 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"DataSource": { | ||
"BaseUrl": "http://nirvana-annotations.s3.us-west-2.amazonaws.com/", | ||
"CacheDirectory": "ab0cf104f39708eabd07b8cb67e149ba-Cache", | ||
"ReferencesDirectory": "d95867deadfe690e40f42068d6b59df8-References", | ||
"ManifestDirectory": "a9f54ea6ac0548696c97a3ee64bc39ec2e71b84b-SaManifest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Cloud.Utilities; | ||
|
||
namespace Cloud; | ||
using Microsoft.Extensions.Configuration; | ||
|
||
public sealed class Configuration | ||
{ | ||
public readonly IConfigurationRoot Config; | ||
public readonly IConfigurationSection DataSources; | ||
public string CacheDirectory => DataSources["CacheDirectory"]; | ||
public string ReferencesDirectory => DataSources["ReferencesDirectory"]; | ||
public string ManifestDirectory => DataSources["ManifestDirectory"]; | ||
public string NirvanaBaseUrl => DataSources["BaseUrl"]; | ||
public Configuration() | ||
{ | ||
const string appSettingsFilename = "Cloud.appsettings.json"; | ||
|
||
Config = new ConfigurationBuilder() | ||
.AddJsonFile(appSettingsFilename) | ||
.Build(); | ||
|
||
DataSources = Config.GetSection("DataSource"); | ||
|
||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{ | ||
"DataSource": { | ||
"HostName": "annotations.nirvana.illumina.com", | ||
"CacheDirectory": "ab0cf104f39708eabd07b8cb67e149ba-Cache", | ||
"ReferencesDirectory": "d95867deadfe690e40f42068d6b59df8-References", | ||
"ManifestGRCh37": "latest_SA_GRCh37.txt", | ||
"ManifestGRCh38": "latest_SA_GRCh38.txt" | ||
"ManifestGRCh37": "latest", | ||
"ManifestGRCh38": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Cloud; | ||
using VariantAnnotation.SA; | ||
using Xunit; | ||
|
||
namespace UnitTests.Cloud; | ||
|
||
public sealed class ConsistencyTests | ||
{ | ||
[Fact] | ||
public void Consistency_with_SAUtils() | ||
{ | ||
Assert.Equal(LambdaUrlHelper.SaSchemaVersion, SaCommon.SchemaVersion); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.