Skip to content

Commit

Permalink
Dockerfile (#94)
Browse files Browse the repository at this point in the history
SiloHostFixture.Dispose

Add GitHub super-linter checks for pull request validation.
  • Loading branch information
jthelin authored Jul 7, 2020
1 parent 775764d commit f607012
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packages
.git
.idea
TestResults
27 changes: 27 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Lint Code Base

# https://github.com/marketplace/actions/super-linter

# Start the job on all push
on:
push:
branches-ignore:
- "master"

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: docker://github/super-linter:v2.1.0
env:
VALIDATE_ALL_CODEBASE: true
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# docker build . --file Dockerfile --tag serverhost

FROM mono:5

RUN mono --version

WORKDIR /home/app/src

COPY . .

RUN ./Build.sh

RUN ./Test.sh

CMD [ "bash" ]
1 change: 1 addition & 0 deletions ServerHost.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{64DBC33D
Test.runsettings = Test.runsettings
Test.sh = Test.sh
azure-pipelines.yml = azure-pipelines.yml
Dockerfile = Dockerfile
EndProjectSection
EndProject
Global
Expand Down
2 changes: 1 addition & 1 deletion ServerHost/ServerHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public static void UnloadAllServers()
/// hooked up when AppDomain was created in <c>LoadServerInNewAppDomain</c>,
/// and unhooked when AppDomain is unloaded in <c>UnloadServerInAppDomain</c>.
/// </remarks>
/// <remarks>Used <c>log4net</c> framework to report error details.</remarks>
/// <remarks>Uses <c>log4net</c> framework to report error details.</remarks>
[ExcludeFromCodeCoverage]
private static void ReportUnobservedException(object sender, UnhandledExceptionEventArgs eventArgs)
{
Expand Down
4 changes: 2 additions & 2 deletions ServerHost/Testing/ServerHostFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ protected virtual void Dispose(bool disposing)
ReleaseUnmanagedResources();
if (disposing)
{
_log.Info($"{_className} - Dispose");
_log.Info($"{_className} - Dispose - UnloadAllServers");

// TODO release managed resources here
ServerHost.UnloadAllServers();
}
}

Expand Down

0 comments on commit f607012

Please sign in to comment.