Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2924_DotNetCoreMigration/HeuristicLab/3.3/DockerLinuxBuild/Dockerfile @ 17013

Last change on this file since 17013 was 17013, checked in by dpiringe, 5 years ago

#2924:

  • some changes in CLIApplication.cs to reduce unnecessary allocation of string objects
  • renamed AppTest to ConsoleOptimizer and fixed race condition
  • replaced enum RunnerJob with class RunnerMessage for more control of saved data
  • changed usage of BinaryFormatter with HEAL.Attic, following types are now Storable:
    • ConsoleOptimizer
    • InspectApplication
    • ApplicationBase
    • ApplicationRunner
    • AssemblyInfo
    • Runner
    • UniPath
    • RunnerMessage
  • switched QuietMode from ApplicationRunner to IRunner
  • DockerRunnerHost can now automatically build docker images for linux and windows containers (also identifies which container type is active) -> removes the condition to have the image preinstalled
    • to achieve this, there are two new folders DockerLinuxBuild and DockerWindowsBuild included in build output, which include Dockerfiles to build images for linux and windows container
  • added NuGet package System.CodeDom to project HeuristicLab.Scripting-3.3
  • added method Send(RunnerMessage) to IRunnerHost and transferred methods Pause and Resume to IRunner
  • added internal reference of RunnerHost in Runner
  • added abstract method SendMessage(RunnerMessage) in RunnerHost which gets called from method Send(RunnerMessage)
  • because of a Google.Protobuf "bug", RunnerMessages cannot get serialized/deserialized directly on stream -> workaround with a byte array, which gets written and read
    • additionally, the length of the array gets sent first (length as integer -> 4 bytes)
    • static method in RunnerMessage to read a message from a stream
    • the method SendMessage(RunnerMessage) in RunnerHost implements this functionality
File size: 1.6 KB
Line 
1FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim AS runtime
2WORKDIR /app
3
4#FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
5#WORKDIR /src
6
7
8#COPY ["HeuristicLab/3.3/", "HeuristicLab/3.3/"]
9#COPY ["HeuristicLab.CommandLineInterface/", "HeuristicLab.CommandLineInterface/"]
10#COPY ["HeuristicLab.Common/3.3/", "HeuristicLab.Common/3.3/"]
11#COPY ["HeuristicLab.PluginInfrastructure/3.3/", "HeuristicLab.PluginInfrastructure/3.3/"]
12#COPY ["HeuristicLab.DynamicAssemblyTestApp/", "HeuristicLab.DynamicAssemblyTestApp/"]
13#COPY ["HeuristicLab.Core/3.3/", "HeuristicLab.Core/3.3/"]
14#COPY ["HeuristicLab.Persistence/3.3/", "HeuristicLab.Persistence/3.3/"]
15#COPY ["HeuristicLab.Tracing/3.3/", "HeuristicLab.Tracing/3.3/"]
16#COPY ["HeuristicLab.Common.Resources/3.3/", "HeuristicLab.Common.Resources/3.3/"]
17#COPY ["HeuristicLab.Collections/3.3/", "HeuristicLab.Collections/3.3/"]
18#COPY ["HeuristicLab.Optimization/3.3/", "HeuristicLab.Optimization/3.3/"]
19#COPY ["HeuristicLab.Data/3.3/", "HeuristicLab.Data/3.3/"]
20#COPY ["HeuristicLab.Parameters/3.3/", "HeuristicLab.Parameters/3.3/"]
21#COPY ["HeuristicLab.Operators/3.3/", "HeuristicLab.Operators/3.3/"]
22#COPY ["HEAL.Attic-master/HEAL.Attic-master/src", "HeuristicLab.Operators/3.3/"]
23
24
25#RUN dotnet restore "HeuristicLab/3.3/HeuristicLab-3.3.csproj"
26#WORKDIR "/src/HeuristicLab/3.3"
27#RUN dotnet build "HeuristicLab-3.3.csproj" -c Release -o /app_linux
28
29#FROM build AS publish
30#RUN dotnet publish "HeuristicLab-3.3.csproj" -c Release -o /app_linux
31
32COPY . .
33
34#FROM runtime AS final
35#WORKDIR /app
36#COPY --from=publish /app .
37ENTRYPOINT ["dotnet", "HeuristicLab-3.3.dll"]
Note: See TracBrowser for help on using the repository browser.