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
FROM mcr.microsoft.com/windows/servercore:1809 | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
ENV ERLANG_VERSION="22.1" \ | |
ERLANG_HOME="C:\\erlang" \ | |
RABBITMQ_VERSION="3.8.1" \ | |
RABBITMQ_HOME="C:\\rabbitmq" | |
COPY otp_win64_22.1.exe . |
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
FROM mcr.microsoft.com/windows/servercore:1809 as installer | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
COPY node-v12.13.1-win-x64.zip . | |
RUN Expand-Archive C:\node-v12.13.1-win-x64.zip -DestinationPath C:\; \ | |
Rename-Item C:\node-v12.13.1-win-x64 C:\nodejs | |
FROM mcr.microsoft.com/windows/nanoserver:1809 |
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
worker_processes 1; | |
daemon off; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
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
FROM mcr.microsoft.com/windows/servercore:1809 | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
ENV NGINX_VERSION 1.17.6 | |
RUN Invoke-webrequest http://nginx.org/download/nginx-1.17.6.zip -UseBasicParsing -outfile C:\nginx.zip ; \ | |
Expand-Archive C:\nginx.zip -DestinationPath C:\nginx | |
WORKDIR C:\\nginx\\nginx-1.17.6 |
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
[<RequireQualifiedAccess>] | |
module Console = | |
open System | |
let private log = | |
let lockObj = obj() | |
fun color text -> | |
lock lockObj (fun _ -> | |
Console.ForegroundColor <- color | |
printfn "%s" text |
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
[<RequireQualifiedAccess>] | |
module Async = | |
open System | |
open System.Threading | |
open System.Threading.Tasks | |
let singleton x = async { | |
return x | |
} |
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
open System | |
open System.Collections.Generic | |
open System.Data.SqlClient | |
open Dapper | |
open System.Data | |
open FSharp.Control.Tasks.V2.ContextInsensitive | |
let ExitCode = 0 | |
let DbConnectionString = "Server=localhost;Database=EventStore;Trusted_Connection=True;" |
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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace GracefulExit | |
{ | |
class Program | |
{ | |
// AutoResetEvent to signal when to exit the application. | |
private static readonly AutoResetEvent waitHandle = new AutoResetEvent(false); |
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
import babel from 'rollup-plugin-babel'; | |
import common from 'rollup-plugin-commonjs'; | |
import copy from 'rollup-plugin-copy'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
export default { | |
input: 'src/index.js', | |
output: { | |
file: 'dist/index.js', | |
format: 'esm' |
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
Param | |
( | |
[String] | |
$OutputDirectory = $(Throw "The output directory was not specified."), | |
[String] | |
$PackDirectory = $(Throw "The pack directory was not specified.") | |
) | |
try { | |
Write-Output "Packaging azure functions..." |