-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74a9577
commit 685a653
Showing
13 changed files
with
94 additions
and
64 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.dockerignore | ||
.env | ||
.git | ||
.gitignore | ||
.vs | ||
.vscode | ||
*/bin | ||
*/obj | ||
**/.toolstarget |
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Conductor.Domain.Models; | ||
using Microsoft.AspNetCore.Mvc.Formatters; | ||
using SharpYaml.Serialization; | ||
|
||
namespace Conductor.Formatters | ||
{ | ||
public class YamlRequestBodyOutputFormatter : OutputFormatter | ||
{ | ||
|
||
public YamlRequestBodyOutputFormatter() | ||
{ | ||
SupportedMediaTypes.Add("application/x-yaml"); | ||
SupportedMediaTypes.Add("application/yaml"); | ||
} | ||
|
||
public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context) | ||
{ | ||
var response = context.HttpContext.Response; | ||
var serializer = new Serializer(); | ||
var body = Encoding.UTF8.GetBytes(serializer.Serialize(context.Object)); | ||
await response.Body.WriteAsync(body, 0, body.Length); | ||
} | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base | ||
WORKDIR /app | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
FROM microsoft/dotnet:2.2-sdk AS build | ||
WORKDIR /src | ||
COPY ["Conductor/Conductor.csproj", "Conductor/"] | ||
COPY ["Conductor.Steps/Conductor.Steps.csproj", "Conductor.Steps/"] | ||
COPY ["Conductor.Domain/Conductor.Domain.csproj", "Conductor.Domain/"] | ||
COPY ["Conductor.Storage/Conductor.Storage.csproj", "Conductor.Storage/"] | ||
RUN dotnet restore "Conductor/Conductor.csproj" | ||
COPY . . | ||
WORKDIR "/src/Conductor" | ||
RUN dotnet build "Conductor.csproj" -c Release -o /app | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "Conductor.csproj" -c Release -o /app | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app . | ||
ENTRYPOINT ["dotnet", "Conductor.dll"] |