Add script and instruction to build all the docker images by yourself

This commit is contained in:
nicolas.dorier
2018-12-02 13:32:01 +09:00
parent a52b65e459
commit c9a0454034
11 changed files with 630 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace DockerFileBuildHelper
{
public class DockerFile
{
public string DockerFileName { get; private set; }
public string DockerFilePath { get; private set; }
public static DockerFile Parse(string str)
{
var file = new DockerFile();
var lastPart = str.LastIndexOf('/');
file.DockerFileName = str.Substring(lastPart + 1);
if (lastPart == -1)
{
file.DockerFilePath = ".";
}
else
{
file.DockerFilePath = str.Substring(0, lastPart);
}
return file;
}
}
}