20
Docker on Heroku Heroku Docker [email protected] Takashi Abe @ Platform Specialist

Docker on Heroku のはじめ方

Embed Size (px)

Citation preview

Docker on Heroku Heroku Docker

[email protected] Abe @ Platform Specialist

Forward-Looking Statements

Statement 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.comproducts, 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.

自 己 紹介

(Takashi Abe)Platform Specialist (@sho7650)

à HW àà IT à

: Perfume/BABYMETAL/ /

Heroku

Platform as a Service

DBMS

OS

DBMS

OS

IaaS(Infrastructure as a Service)

DBMS

OS

SaaS(Software as a Service)

/

DBMS

OS

PaaS(Platform as a Service)

24 /365

IaaS

Dyno Dyno

Data

Add-onsPaymentsEmailSMSSearchAnalyticsMonitoringLogging

RubyNode.jsJavaPythonPHPScalaClojure

PostgresRedisKafka

Heroku

The Twelve Factor App

→ CI/CD

• Git / Github

• Pipeline > >

• Fork

/

項⽬ 説明

Private Spaces • DynoやDataなど、Herokuのアプリ実⾏環境をネットワーク的に分離された環境に構築

• ⽇本国内のデータセンター利⽤も可能

エンタープライズサポート

• 技術的な質問やトラブル時のサポートチケットに対して、重要度に応じた応答時間のSLAを提供

• ⽇本語でのサポート対応を提供• 導⼊時のアーキテクチャデザインやAdd-on選定といった

ご相談に⽇本⼈技術者が対応

Heroku Connect • Salesforceのオブジェクトとの双⽅向データ同期機能を提供

Private Spaces

Heroku Connect

PostgresHeroku Salesforce

Container Registry & RuntimeHeroku Docker Registry Heroku Docker !!

Docker Heroku

1. Heroku 2. Heroku CLI 3. docker

buildpack ではなく、docker イメージでランタイムやミドルウェアを開発者が準備できるので、これまでdocker を利⽤していた開発者でも容易にデプロイが!

Heroku Docker Heroku !!

起動確認デプロイアドオン追加Herokuアプリ追加Docker アプリ準備

アプリ開発

git clone

アプリ準備 heroku create

データベース

ログ出⼒

監視ツール

ファイル保管

などなど

:

container:push heroku logs

170以上!?

“heroku container:push”

※ https://blog.heroku.com/introducing_heroku_docker_release_build_deploy_heroku_apps_with_docker

heroku login

heroku container:login

起動確認デプロイアドオン追加Herokuアプリ追加事前準備

heroku create

heroku addons:create

heroku container:push

heroku open

heroku アプリの作成とアドオン追加は、⼀度の実⾏でOK

Heroku のアドオンもDocker から利⽤可能

‘heroku-docker’ “heroku docker”

Dockerfile

• $PORT Listen • Network link • Default working directory ‘/’ ‘WORKDIR’ • ‘CMD’ ENTRYPOINT • ‘VOLUME’ ‘EXPOSE’ ‘STOPSIGNAL’ ‘SHELL’ ‘HEALTHCHECK’

$PORT Web

Heroku

• Dyno 24 +α• 24•

• Web 30• Worker Dyno

• Twelve Factor App(https://12factor.net/ja/)

Heroku

詳しくはこちらへどうぞ!!https://devcenter.heroku.com/articles/limits

DEMO

Japan Heroku User Group https://herokujp.doorkeeper.jp/

次のステップへ...Trailhead

Heroku Enterpriseの基礎

Heroku Enterpriseをいつどのように使⽤するかに

ついての基礎を学習します

SalesforceとHerokuのインテグレーション

HerokuのアプリケーションをSalesforceに統合するためのパターンと⽅法を学びます

https://trailhead.salesforce.com/ja

AppendixHeroku References

Heroku

• Heroku Heroku CLI

• Heroku – Heroku Dev Center

• Heroku

• Heroku (Heroku Getting Started )• Node.js Heroku

• Ruby Heroku

• Heroku - Java

• PHP Heroku

• Python Heroku

• Heroku CI/CD