Deploying JEE to Heroku

  • Published on
    14-Jan-2017

  • View
    110

  • Download
    0

Embed Size (px)

Transcript

PowerPoint Presentation

Deploying JEE to HEROKUBogdan Marian12 October 2016

1

About MeiQuest Java developer since 2015LinkedIn: https://www.linkedin.com/in/bmarianGitHub: https://github.com/satrapu

Bogdan Marian

2

HerokuCloud application platformCedar stack (Heroku managed OS image)Ubuntu 14.04 LTSProcess model implemented via dyno manager Dyno = Linux containerConfigurations: web (HTTP only, must bind to PORT or be killed), worker (anything, except HTTP), one-off (heroku run command)Types: free, hobby, standard, performance, enterpriseA process is declared in a Procfile: : Heroku Elements (add-ons, buttons, buildpacks)Different languages (Java, PHP, Python, Ruby, etc.)Different databasesRelational: MySQL, PostgreSQL, SQLite, etc.NoSQL: Mongo DB, Redis, etc.Much moreHeroku CLIJava Different deployment models, including git and WARNo Java EE supportRun Java processes via: java jar *.jar

General Information

3

WildFly SwarmJust-enough-appserverConstruction toolkit for minimalistic Java EE runtimes based on WildFly 10.1.0 Final application server UberjarRun Java EE applications via: java jar *-swarm.jarGeneral Information

4

DemoSource code: https://github.com/satrapu/iquest-keyboards-and-mice-brasov-2016CI/CD: https://drone.io/github.com/satrapu/iquest-keyboards-and-mice-brasov-2016/latestLive application: https://iq-kam-brasov-2016.herokuapp.com/demo

Deploying JEE to Heroku

5

DemoOn Heroku sideCreate a free accountAdd a new applicationAdd a PostgreSQL databaseSetup Java specific config varsAdd Java buildpackOn developer machineInstall Heroku CLIInstall GitClone repoSetup Heroku Git remoteDeploy via Git command: git push heroku masterOptionally, on drone.io side (replaces git push )Create a free accountSetup build with Heroku deploymentUpload SSH key to Heroku accountClick the Build Now buttonSteps

6

Referenceshttps://github.com/satrapu/iquest-keyboards-and-mice-brasov-2016/blob/master/README.md#referencesHosted on GitHub

7

Q&A

8

Copyright 2016, iQuest Group. All rights reserved. Thank You!iquestgroup.combusiness@iquestgroup.com

9