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
#!/bin/sh | |
#### | |
# Dockerize: A tiny replacement for Dockerfiles | |
# This script leverages `docker run` and `docker commit` to provide a usable workaround for | |
# restrictions of `docker build` and Dockerfile syntax to strictly host-independent builds. | |
# | |
# See these discussions: | |
# https://github.com/docker/docker/pull/1124 | |
# https://github.com/docker/docker/issues/3156 | |
# https://github.com/docker/docker/issues/3949 |
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
void Main() | |
{ | |
Environment.CurrentDirectory = Path.GetDirectoryName(Util.CurrentQueryPath); | |
Compiler.CompileFiles(Options.CreateOnDiskDll( | |
@namespace: "LinqPad.QueriesCompiler", | |
outputFile: "LinqPad.QueriesCompiler.dll") | |
.AddCodeFile(CodeType.LinqProgramTypes, Util.CurrentQueryPath)) | |
.Dump("Successfully created assembly at " + DateTime.Now.ToLocalTime()); | |
} |