如何使Cake-build的示例项目在Docker上工作

我正尝试使用Docker与Cake构build自动化系统 ,但没有成功。

我开始运行单声道图像:

docker run -it mono:latest 

然后我安装git:

 apt-get update apt-get install git 

然后我克隆Cake的示例项目:

 git clone https://github.com/cake-build/example.git cd example/ 

然后我运行构build脚本:

 ./build.sh 

结果是:

 Feeds used: https://api.nuget.org/v3/index.json Restoring NuGet package Cake.0.23.0. Got a bad hardware address length for an AF_PACKET 16 8 Got a bad hardware address length for an AF_PACKET 16 8 Got a bad hardware address length for an AF_PACKET 16 8 Got a bad hardware address length for an AF_PACKET 16 8 Got a bad hardware address length for an AF_PACKET 16 8 Got a bad hardware address length for an AF_PACKET 16 8 GET https://api.nuget.org/v3-flatcontainer/cake/0.23.0/cake.0.23.0.nupkg OK https://api.nuget.org/v3-flatcontainer/cake/0.23.0/cake.0.23.0.nupkg 589ms Installing Cake 0.23.0. Could not restore NuGet packages. ... 

我能做些什么来解决它?

这个问题几个月前在https://github.com/mono/mono/pull/5159上解决了

而由于蛋糕的例子是旧的,我build议创build一个最新版本的单声道的例子

Interesting Posts