Skip to content

Commit

Permalink
Update docker base image (#143)
Browse files Browse the repository at this point in the history
* Update docker base image from dotnet core 2.1 to dotnet core 3.1 (support for win1803 dropped)

* set `akka.remote.dot-netty.tcp.batching.enabled to false

* runtime needs to stay at .net core 2.1

* downgrade docker image version to match azure pipeline version

Co-authored-by: Aaron Stannard <aaron@petabridge.com>
  • Loading branch information
Arkatufus and Aaronontheweb authored Apr 30, 2020
1 parent 8cfeb45 commit 6146375
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Lighthouse/Dockerfile-linux
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 AS base
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS base
WORKDIR /app

# Install Petabridge.Cmd client so it can be invoked remotely via
Expand All @@ -25,6 +25,7 @@ ENV CLUSTER_SEEDS "[]"
ENV CLUSTER_IP ""
ENV CLUSTER_PORT "4053"
ENV AKKA__CLUSTER__SPLIT_BRAIN_RESOLVER__ACTIVE_STRATEGY "keep-majority"
ENV AKKA__REMOTE__DOT-NETTY__TCP__BATCHING__ENABLED "false"

# 9110 - Petabridge.Cmd
# 4053 - Akka.Cluster
Expand Down
5 changes: 3 additions & 2 deletions src/Lighthouse/Dockerfile-windows
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-nanoserver-1803 AS base
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1809 AS base
WORKDIR /app

# Install Petabridge.Cmd client so it can be invoked remotely via
Expand All @@ -12,7 +12,7 @@ WORKDIR /app

COPY ./bin/Release/netcoreapp2.1/publish/ /app

FROM mcr.microsoft.com/dotnet/core/runtime:2.1-nanoserver-1803 AS app
FROM mcr.microsoft.com/dotnet/core/runtime:2.1-nanoserver-1809 AS app
WORKDIR /app

COPY --from=base /app /app
Expand All @@ -25,6 +25,7 @@ ENV CLUSTER_SEEDS "[]"
ENV CLUSTER_IP ""
ENV CLUSTER_PORT "4053"
ENV AKKA__CLUSTER__SPLIT_BRAIN_RESOLVER__ACTIVE_STRATEGY "keep-majority"
ENV AKKA__REMOTE__DOT-NETTY__TCP__BATCHING__ENABLED "false"

# 9110 - Petabridge.Cmd
# 4053 - Akka.Cluster
Expand Down

0 comments on commit 6146375

Please sign in to comment.