如何部署本地code库取决于几个几百个文件到Windows Azure最方便? [英] How do I deploy a native code library dependent on several hundred files to Windows Azure most conveniently?

查看:163
本文介绍了如何部署本地code库取决于几个几百个文件到Windows Azure最方便?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本指南展示了如何部署由单个.dll文件的COM对象使用启动任务机制在Windows Azure角色。

This guide shows how to deploy a COM object consisting of a single .dll file to a Windows Azure role using the start-up task mechanism.

现在我有依赖于其他几百个文件的COM对象 - .dll文件(我建立他们自己也一样),并需要部署为一个目录树其运作所需的一些二进制数据。包括进入角色的项目(因为它是在指南中的单个文件进行)似乎相当愚蠢的 - 这些文件不属于该角色的功能,而不是角色只是取决于COM对象上

Now I have a COM object that depends on several hundred other files - .dll files (I build them myself as well) and some binary data required for its operation that need to be deployed as a directory tree. Including that into the role project (as it is done for the single file in the guide) seems rather dumb - those files don't belong to the role functionality, instead the role just depends on the COM object.

我如何部署包含COM对象和任何它取决于到一个巨大的树Windows Azure的最方便?

How do I deploy a huge subtree containing the COM object and whatever it depends on onto Windows Azure most conveniently?

推荐答案

一种流行的方法是将这些文件存储在Blob存储。两种方法可以做到这一点:

One popular technique is to store those files in blob storage. Two ways to do this:


  1. 创建为DLL文件和相关文件的容器,每个文件存储在自己的一滴。

  2. 创建,在一个单一的blob压缩您的DLL和依赖关系树,和存储的压缩文件

通过高架启动任务,您可以复制下来的文件(S)和安装COM组件。

With an elevated startup task, you can copy down the file(s) and install your COM component.

选项#2可能会导致更快的启动时间,因为它是一个单一的副本,将有更少的存储交易。你只需要捆绑一个zip应用程序(或者存储在一个单独的斑点。

Option #2 will likely result in a quicker bootup time, since it's a single copy, and it will have less storage transactions. You'll just need to bundle a zip application (or store that in a separate blob.

内特托滕专为Windows Azure的多租户Web角色,而他用来部署网站技术涉及上面的选项#2(虽然不是作为启动任务)。我建议在看该项目看到zip文件是如何复制到本地存储和压缩。

Nate Totten built a multi-tenant web role for Windows Azure, and the technique he uses for deploying a website involves option #2 above (although not as a startup task). I suggest looking at that project to see how the zip file is copied to local storage and unzipped.

编辑:还有一个选择是看 AzureRunMe ,开放源工具在Windows Azure角色解压和启动应用程序。

One more option is to look at AzureRunMe, an open source tool for unzipping and launching apps in a Windows Azure role.

这篇关于如何部署本地code库取决于几个几百个文件到Windows Azure最方便?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆