简体   繁体   English

Dockerfile在Linux容器上安装.NET软件包?

[英]Dockerfile to install .NET packages on a Linux Container?

I have 2 containers. 我有2个容器。 Container 1 has Jenkins on a Linux container. 容器1在Linux容器上具有Jenkins。 Container 2 has .NET packages and other tools (MSBuild, Wix, Nuget, .NET framework 4.5, 4.6.2, KSign, etc) on a Windows container. 容器2在Windows容器上具有.NET软件包和其他工具(MSBuild,Wix,Nuget,.NET Framework 4.5、4.6.2,KSign等)。

I searched online and I don't think it's feasible to install the software packages on container 2 on a Linux container... 我在网上搜索过,但我认为将软件包安装在Linux容器上的容器2上是不可行的...

If I'm running Jenkins on a Linux container, is it possible to create a windows container for my pipeline job? 如果我在Linux容器上运行Jenkins,是否可以为我的管道作业创建Windows容器? How would that work? 那将如何工作?

As mentioned here , Docker on Linux would not support directly Windows containers. 如此处所述 ,Linux上的Docker将不直接支持Windows容器。

If I'm running Jenkins on a Linux container, is it possible to create a windows container for my pipeline job? 如果我在Linux容器上运行Jenkins,是否可以为我的管道作业创建Windows容器?

Only if your Linux is running a Windows VM of some sorts ( Wine in Docker , VBoxHeadless ), then you might be able to run a Windows container within that VM. 仅当您的Linux运行某种Windows VM( Docker中的WineVBoxHeadless )时,您才可以在该VM中运行Windows容器。

You can connect a windows node to jenkins master and schedule windows jobs on this server. 您可以将Windows节点连接到jenkins主服务器,并在此服务器上计划Windows作业。 You can add labels to nodes and in the job restrict where to invoke particular job. 您可以将标签添加到节点,并且可以在作业中限制调用特定作业的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM