mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 21:43:08 +00:00
18 lines
547 B
C#
18 lines
547 B
C#
namespace CodexPlugin
|
|
{
|
|
public class CodexDockerImage
|
|
{
|
|
private const string DefaultDockerImage = "codexstorage/nim-codex:0.2.1-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;
|
|
}
|
|
}
|
|
}
|