mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-03 14:03:09 +00:00
21 lines
668 B
C#
21 lines
668 B
C#
|
|
using CodexContractsPlugin;
|
|||
|
|
|
|||
|
|
namespace CodexPlugin
|
|||
|
|
{
|
|||
|
|
public class CodexDockerImage : ICodexDockerImageProvider
|
|||
|
|
{
|
|||
|
|
private const string DefaultDockerImage = "codexstorage/nim-codex:sha-c9a5ef8-dist-tests";
|
|||
|
|
//"codexstorage/nim-codex:latest-dist-tests";
|
|||
|
|
|
|||
|
|
public static string Override { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
public string GetCodexDockerImage()
|
|||
|
|
{
|
|||
|
|
var image = Environment.GetEnvironmentVariable("CODEXDOCKERIMAGE");
|
|||
|
|
if (!string.IsNullOrEmpty(image)) return image;
|
|||
|
|
if (!string.IsNullOrEmpty(Override)) return Override;
|
|||
|
|
return DefaultDockerImage;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|