Share via


[MEMO] OSS アプリを Web Application Gallery に登録する (1) 概要

OSS アプリを Web Application Gallery に登録すると、Web Platform Installer (Web PI) でインストールできるようになり、OSS アプリのインストールが飛躍的に簡単になります。今回は、Web Application Gallery の登録概要についてご紹介申し上げます。


■ Web Platform Installer による Web Application Gallery 登録アプリのインストール範囲

下記はIISに OSS アプリをインストールする手順と Web PI が実施してくれる範囲を示したものです。通常、IIS に OSS アプリ をインストールする場合、環境構築や設定を行うのですがこれが大きな手間になります。しかし、 Web PI を使用する事でその手間を省く事ができます。もちろん、アプリのインストール部分も Web PI に実行させることも可能ですが、その場合は アプリをかなりカスタマイズする必要があるので現実的ではありません。すなわち、Web PI は OSS アプリのインストーラーを起動する前までの作業を行ってくれるツールという位置づけになります。

image


■ Web Application Gallery の正体

Web Application Gallery に登録された OSS アプリケーションは XML ファイル形式にてマイクロソフトの Web サイトに配置されております。 Web PI はこの XML データもとに OSS アプリケーションの動作に必要な環境の構築と OSS アプリケーションのインストールを行います。

登録された アプリケーションの例として、Wordpress 3.1 英語版の内容を下記に記載します。ここで申し上げたい点としては、 Web Application Gallery には Web PI でインストールするために必要な全ての情報が記載されている事です。ここの XML データは、Web Application Gallery に登録が完了した時点で自動的に生成されるものになりますので、手動で作成いただく事はございません。

<entry type="application"> <productId>WordPress</productId> <title resourceName="Entry_WordPress_Title">WordPress</title> <id>https://www.microsoft.com/web/webpi/2.0/WordPress</id> <summary resourceName="Entry_WordPress_Summary">WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability.</summary> <updated>2011-03-02T17:59:03Z</updated> <published>2011-03-02T00:00:00Z</published> <longSummary resourceName="Entry_WordPress_LongSummary">WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day.</longSummary> <version>3.1</version> <link href="https://wordpress.org/support/" /> <images> <icon>https://www.microsoft.com/web/handlers/webpi.ashx?command=getimage&amp;guid=f67accd3-8455-4830-b1d7-eef8959c0325</icon> </images> <keywords> <keywordId>Blogs</keywordId> <keywordId>ContentMgmt</keywordId> <keywordId>PHP</keywordId> <keywordId>MySQL</keywordId> </keywords> <author> <name>WordPress</name> <uri>https://wordpress.org</uri> </author> <dependency> <and> <dependency idref="PHP52App" /> <dependency idref="MySQLApp" /> </and> </dependency> <installers> <installer> <id>1</id> <languageId>en</languageId> <osList idref="SupportedAppPlatforms" /> <installerFile> <fileSize>2979</fileSize> <trackingURL>https://www.microsoft.com/web/handlers/webpi.ashx?command=incrementappdownloadcount&amp;appid=WordPress&amp;version=3.1&amp;applang=en</trackingURL> <installerURL>https://wordpress.org/wordpress-3.1-IIS.zip</installerURL> <sha1>140b5982c58970550e1fa3f0f27c36f2420f65eb</sha1> </installerFile> <msDeploy /> <helpLink>https://wordpress.org/support/</helpLink> </installer> </installers> <addToFeedDate>03-02-2011</addToFeedDate> <pageName>WordPress</pageName> <productFamily resourceName="Applications">Applications</productFamily> </entry>


■ Web Application Gallery への登録要件

登録要件は下記になります。マイクロソフトの Web サイト上にパッケージを配置すると誤解されますが、実際はOSS アプリのパッケージ申請者の Web サイトに配置いただく事になります。

<OSS アプリの要件>

  • フリーの OSS Web アプリケーション
  • 現行バージョンのものが望ましい
  • OSS アプリのパッケージ申請者の Web サイトに配置可能
  • エンドユーザーからの問い合わせにご対応可能
  • ASP.NET (2.0 / 3.5 / 4) もしくは PHP (5.2 or 5.3) に対応
  • SQL Server 2008 R2、MySQL 5.1 、SQL Server Compact のいずれかに対応

対応する IIS のバージョンは下記になります。IIS Express は IIS 7.5 ベースとなっておりますので、IIS 7.x と IIS 6.0 にインストール可能である必要があります。URL Rewrite (Apache の mode_rewrite) の機能が IIS 6.0 にはありませんので、URL Rewrite がインストールに必須の場合は登録要件を満たせない可能性があります。ご注意ください。

また、IIS Express に対応する場合は、WebMatrix の発行機能に対応する必要があります。こちらは別の機会にご説明したいと思います。

<対応 IIS>

  • IIS 6.0 (Windows Server 2003)
  • IIS 7.0 (Windows Vista)
  • IIS 7.5 (Windows 7, Windows Server 2008)
  • IIS Express (WebMatrix)

概要の説明は以上になります。


■ Web Application Gallery への登録手順

Web Application Gallery への登録は下記の 3ステップになります。これらの 3 ステップのうち、OSS アプリのパッケージング作業とテストが中心 になります。

<登録手順>

  1. OSS アプリのパッケージング
  2. パッケージのテスト
  3. Web Application Gallery への登録申請

 

以上になります。

武田正樹

<ご参考>