25
Salesforce DX とは? Salesforceの開発生産性向上のための新機能 @mitsuhiro [email protected] Trail blazer Mitsuhiro Okamoto Senior Developer Evangelist

Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Salesforce DX とは?Salesforceの開発生産性向上のための新機能

@[email protected]

Trail blazer

Mitsuhiro OkamotoSenior Developer Evangelist

Page 2: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Forward-Looking StatementsStatement under the Private Securities Litigation Reform Act of 1995:

This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.

The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.

Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Page 3: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Mitsuhiro Okamoto

Senior Developer Evangelist

Page 4: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

モダンなソフトウェアデリバリに必要な事

➔すべてはソースドリブンであること

➔環境は簡単に構築・破棄ができること

➔開発がチームのコラボレーションを通して行えること

➔プロセスおよびツールは継続的デリバリをサポートすること

➔開発フローではオープンでスタンダードかつ拡張可能なものが利用できること

➔アジャイルな配布モデルに基づくパッケージングがサポートされている

Building a world-class software factory

Page 5: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Salesforce 開発の変換

カテゴリ 以前 これから

ソースの元 ランタイム環境 (Org) バージョン管理システム

環境 少数 / 永続的 多数 / 揮発的

開発モデル 組織単位 チーム単位

デリバリーモデル マニュアルによるリリース管理 継続的デリバリ

ツール カスタム CLI - Driven

Page 6: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Salesforce DXSalesforce アプリでDevOpsや継続的デリバリーを実現

ソース駆動開発コード、メタデータ、組織の設定情報などをソースコード管理 システムで管理素早い開発&デプロイScratch Orgsを開発およびテストで使用 オープンで業界標準に準拠した開発フローGit, Selenium, Eclipse, Sublimeなど、開発者の好みのツールを利用可能

Page 7: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Source Code コード, メタデータ, 組織の設定

Scratch Orgsソースドリブン、アドホック

CI 継続的インテグレーションと

自動化テストの統合

Pipelinesチームでのコラボレーション

& 継続的デリバリー

Packaging 2.0ISVに新しい体験を

Force.com IDE 2.0チームおよびソース開発を

サポートするツール

Salesforce CLI開発と自動化をフルサポート

Salesforce DX : 何を作っているか

Page 8: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

SALESFORCE DX

コードおよびメタデータをバージョン管理システムへ ● ソースコード, メタデータ, 設定, テストデータ,

Salesforce 組織構成, サービス Salesforce DX APIs ● 自動化のためのTooling AP ● ソース同期 API ● 組織内の変更履歴のin & out ● 安定したソースの構造(順序、一貫性)

主なメリット ● 現在の変更管理プロセスとのガバナンス ● 業界標準のコラボレーションツールとの緊密な

インテグレーション

ソース駆動開発

Page 9: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

コマンドラインインタフェースSALESFORCE DX

Salesforce CLI ● 開発およびCI用の組織の生成・破棄 ● 組織及びファイルシステムからソースを同期 ● 開発及びテスト用のデータのインポートおよびテスト

スイートの作成と実行 ● パッケージやアーティファクトのライフサイクル制御

主なメリット ● 全ての SalesforceDX 機能への単一のインタフェース ● 開発生産性の向上 ● バージョン管理やCI、外部ツールとのインテグレーション

Page 10: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

SALESFORCE DX

Salesforce組織の動的な生成Scratch Orgs ● 揮発性 / 破棄が可能 ● ソースコードや設定ファイルからスピンアップが可能 ● 開発 , テスト , 継続的インテグレーション(CI) , 継続的デ

リバリー(CD) ● 組織構造の設定 (Edition, Features, Preferences)

主なメリット ● 開発生産性 ● チームコラボレーション ● DevOps の自動化

Page 11: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Herokuパイプライン ● アプリケーションのビルドとワークフローを自動化 ● チームコラボレーションでアプリをレビュー ● セキュリティおよびコードの本番環境へのリリース管理 ● Salesforce以外の開発と統一化された開発体験

主なメリット ● 開発生産性の向上 ● コード品質の向上 ● チームコラボレーション ● コード管理の効率化

継続的デリバリー(CD)SALESFORCE DX

Page 12: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Heroku CI (new!) ● 柔軟なスクリプトベースのテストスイート ● 継続的デリバリーワークフロー及びUIとの統合 ● Apex及び複数の言語を利用したアプリのサポート Bring-your-own CI - 既存のCIを利用する ● Heroku CIの代わりに既存のCIツール(Jenkins,

TeamCity など)との統合も可能 ● 複数のテストの結果を一つの統合されたUIで表示 主なメリット ● 開発生産性の向上 ● Apex, Lightningや数多くのプログラミング言語に対応 ● 高速、スケーラブル、統合されたテスト

継続的インテグレーション(CI)SALESFORCE DX

Page 13: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Salesforce IDE 2.0SALESFORCE DX

Eclipse IDE 機能改善 ● 巨大なコードベースやLightningの開発をサポート ● 開発、テスト用のScratch環境を即座にスピンアップ ● Scrach環境からのソースコードの同期 ● コード保管、リファクタリング、ナビゲーション 開発時の選択肢 ● Eclipse IDE ● コミュニティ、サードパーティによる IDE:

• IntelliJ, Cloud9, Sublime Text, Visual Studio 主なメリット ● 統合された開発体験 ● 開発生産性の向上 ● 開発ツールのサポート

Page 14: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

次世代のパッケージング ● 従来のパッケージからの改善ポイント:

• ソースからパッケージをビルド • 宣言的な管理項目ルール • 複数パッケージを単一の名前空間より提供 • グローバル名前空間を顧客に解放

● IT部門とISVに統一化されたデプロイ手法を提供

主なメリット ● 変更はデプロイではなく、インストールとプッシュ配

信によって実施 ● ISVの俊敏性 、IT部門の生産性向上 ● 統一化されたデプロイ体験

SALESFORCE DX

Packaging 2.0

Page 15: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Demo

Page 16: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

変更セット 2

開発環境から本番へのデプロイアプローチの進化

変更セットによって組織へ差分をデプロイ

本番組織

Salesforce.com - Enterprise

変更セット 1

インストール済 変更セット

開発Sandbox

Salesforce.com - Sandbox

開発されたコードのデプロイ : 今までの方法

Page 17: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

開発環境から本番へのデプロイアプローチの進化

標準的なツールやCLIによりデプロイ

Release 1

Releaseブランチ

Release 2

バージョン管理 システム 本番組織

Salesforce.com - Enterprise

開発されたコードのデプロイ : Salesforce DX

Page 18: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

開発環境から本番へのデプロイアプローチの進化

パッケージのビルドおよびインストール

Sales App V 1

管理パッケージ

Sales App V 2

DreamHouse V 1

DreamHouse V2

Sales App V1

インストール済 パッケージ

DreamHouse V2

本番組織

Salesforce.com - Enterprise

パッケージの作成とアップデート : 今までの方法

開発DE 1

Salesforce.com - Sandbox

開発DE 2

Salesforce.com - Sandbox

Page 19: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

開発環境から本番へのデプロイアプローチの進化

ソースを管理し、MD APIでリリース

Sales App V 1

Package Branches

Sales App V 2

Custom App V 1

Custom App V2

パッケージの作成とアップデート : Salesforce DX

バージョン管理 システム 本番組織

Salesforce.com - Enterprise

Page 20: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

開発環境から本番へのデプロイアプローチの進化

● ソースコード管理システムにあるコードがオリジナルのコード ● 本番組織上のコードではなく、リポジトリ上のコード ● Sandbox組織上のコードではなく、Branchツリーが開発中のコード

バージョン管理 システム

Page 21: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Takafumi ikeda

Solutions Engineer

Page 22: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

Salesforce DX Roadmap

Page 23: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

ステータスとリソースSalesforce DXの状況

● Salesforce DXは現在リミテッド開発者プレビューで応募は締め切っています

● 2017年の上半期により広範囲のパイロットおよびベータが開始される予定です

● より詳細情報や今後のリリースについての情報:

○ https://www.salesforce.com/products/platform/products/salesforce-dx/

○ https://developer.salesforce.com/platform/dx

● 追加のリソース:

○ Blog: https://developer.salesforce.com/blogs/developer-relations/2016/10/salesforce-dx-ux-developers.html

○ Wade Wegner (VP of Product)へのインタビュー: https://www.infoq.com/news/2016/10/salesforce-dx

Page 24: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software

メジャーリリースマイルストーン現在の計画 - 変更の可能性は常にあります

2017年2月 2017年6月 2017年10月SFDX ➔ Command-line Interface ➔ Source sync API ➔ Scratch orgs ➔ Eclipse プラグイン ➔ Test ランナー

非公開 Pilot 公開 Beta GA

Heroku上の継続的デリバリー ➔ Heroku addon, buildpack ➔ Heroku Pipelines ➔ Heroku CI

非公開 Pilot 公開 Beta GA

パッケージング V2 開発者プレビュー 非公開 Pilot 公開 Beta

Page 25: Salesforce DX とは? - Amazon S3 · 2017-02-13 · アジャイルな配布モデルに基づくパッケージングがサポートされている Building a world-class software