如何使用Azure Worker角色安装Git Bash?

时间:2014-07-29 11:41:33

标签: git bash azure installation azure-worker-roles

在我的Azure Cloud Service应用程序中,我想设置Git Bash。 为此,我遵循了this documentation。 我认为最好的方法是创建一个名为startup.cmd`的启动脚本,其内容如下:

 powershell -c 
 "(new-objectsystem.net.webclient).downloadfile
 ("https://github.com/msysgit/msysgit/releases/download/Git-1.9.4-preview20140611  /Git-1.9.4-preview20140611.exe", "Git-1.9.4-preview20140611.exe")
 Git-1.9.4-preview20140611.exe /passive

我在ServiceDefinition.csdef设置启动任务,然后开始调试。 Visual Studio说:

  

角色实例的启动时间比预期的要长。你想继续等待吗?

我知道运行此setup.exe安装程序需要大量用户交互,因此它也不会安装。

但是如何将Git Bash安装到Azure Cloud Service的本地磁盘上?

0 个答案:

没有答案