Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2924_DotNetCoreMigration/HeuristicLab/3.3/DockerWindowsBuild/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.8 KB
Line 
1 #TODO: von linuxbase und windowsbase
2FROM mcr.microsoft.com/dotnet/core/runtime:3.0-nanoserver-1809 AS runtime
3WORKDIR /app
4
5#FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
6#WORKDIR /src
7
8
9#COPY ["HeuristicLab/3.3/", "HeuristicLab/3.3/"]
10#COPY ["HeuristicLab.CommandLineInterface/", "HeuristicLab.CommandLineInterface/"]
11#COPY ["HeuristicLab.Common/3.3/", "HeuristicLab.Common/3.3/"]
12#COPY ["HeuristicLab.PluginInfrastructure/3.3/", "HeuristicLab.PluginInfrastructure/3.3/"]
13#COPY ["HeuristicLab.DynamicAssemblyTestApp/", "HeuristicLab.DynamicAssemblyTestApp/"]
14#COPY ["HeuristicLab.Core/3.3/", "HeuristicLab.Core/3.3/"]
15#COPY ["HeuristicLab.Persistence/3.3/", "HeuristicLab.Persistence/3.3/"]
16#COPY ["HeuristicLab.Tracing/3.3/", "HeuristicLab.Tracing/3.3/"]
17#COPY ["HeuristicLab.Common.Resources/3.3/", "HeuristicLab.Common.Resources/3.3/"]
18#COPY ["HeuristicLab.Collections/3.3/", "HeuristicLab.Collections/3.3/"]
19#COPY ["HeuristicLab.Optimization/3.3/", "HeuristicLab.Optimization/3.3/"]
20#COPY ["HeuristicLab.Data/3.3/", "HeuristicLab.Data/3.3/"]
21#COPY ["HeuristicLab.Parameters/3.3/", "HeuristicLab.Parameters/3.3/"]
22#COPY ["HeuristicLab.Operators/3.3/", "HeuristicLab.Operators/3.3/"]
23#COPY ["HEAL.Attic-master/HEAL.Attic-master/src", "HeuristicLab.Operators/3.3/"]
24
25
26#RUN dotnet restore "HeuristicLab/3.3/HeuristicLab-3.3.csproj"
27#WORKDIR "/src/HeuristicLab/3.3"
28#RUN dotnet build "HeuristicLab-3.3.csproj" -c Release -o /app_linux
29
30#FROM build AS publish
31#RUN dotnet publish "HeuristicLab-3.3.csproj" -c Release -o /app_linux
32
33COPY . .
34
35#FROM runtime AS final
36#WORKDIR /app
37#COPY --from=publish /app .
38ENTRYPOINT ["dotnet", "HeuristicLab-3.3.dll"]
39#TODO: image nur aus binarys bauen von publish
40#https://blogs.msdn.microsoft.com/appconsult/2018/09/20/running-containers-based-on-different-platforms-side-by-side-with-docker-preview/
Note: See TracBrowser for help on using the repository browser.