SlideShare uma empresa Scribd logo
1 de 8
Baixar para ler offline
Play! Framework +
                           OpenShift quickstart
                 Deploying scala web application to Openshift cloud in 5
                                        minutes




                                            1
вторник, 29 января 13 г.
Before you begin
                    • Download and install Play! Framework
                    • Install Git
                    • Create account on Openshift
                    • Install OpenShift CLI


                                        2
вторник, 29 января 13 г.
Create new app
            $ play new SimpleBlog
            What is the application name?
            > SimpleBlog

            Which template do you want to use for this new application?

                 1 - Create a simple Scala application
                 2 - Create a simple Java application
                 3 - Create an empty project

            > 1

            $ cd SimpleBlog




                                            3
вторник, 29 января 13 г.
Create OpenShift app
            Connect CLI to OpenShift
            $ rhc setup

            Create ne DIY cartrige

             $ rhc app create SimpleBlog -t diy-0.1 --no-git -l <email>
              Output of last command will contain Git URL like this

               Git URL = ssh://your_uuid@SimpleBlog-yourdomain.rhcloud.com/~/git/SimpleBlog.git/

              Remember it




                                                        4
вторник, 29 января 13 г.
Add to Git
            Add code to OpenShift repo
            $ git init
            $ git remote add origin ssh://your_uuid@SimpleBlog-
            yourdomain.rhcloud.com/~/git/DimpleBlog.git/

            $ git pull -s recursive -X theirs origin master

            $ git add .
            $ git commit -m "initial deploy"




                                         5
вторник, 29 января 13 г.
Add OpenShift config
        $ git remote add quickstart -m master git://github.com/opensas/
        play2-openshift-quickstart.git
        $ git pull -s recursive -X theirs quickstart master


        Then use the stage task to prepare your deployment


        $ play clean compile stage

        git add .
        git commit -m "commit message"
        git push origin




                                                    6
вторник, 29 января 13 г.
Done!
                           Check you web app URL




                                     7
вторник, 29 января 13 г.
Links

                    • http://www.playframework.org/
                    • https://openshift.redhat.com/
                    • https://github.com/opensas/play2-openshift-
                           quickstart/




                                         8
вторник, 29 января 13 г.

Mais conteúdo relacionado

Destaque

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Destaque (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Starting with Play on Openshift

  • 1. Play! Framework + OpenShift quickstart Deploying scala web application to Openshift cloud in 5 minutes 1 вторник, 29 января 13 г.
  • 2. Before you begin • Download and install Play! Framework • Install Git • Create account on Openshift • Install OpenShift CLI 2 вторник, 29 января 13 г.
  • 3. Create new app $ play new SimpleBlog What is the application name? > SimpleBlog Which template do you want to use for this new application? 1 - Create a simple Scala application 2 - Create a simple Java application 3 - Create an empty project > 1 $ cd SimpleBlog 3 вторник, 29 января 13 г.
  • 4. Create OpenShift app Connect CLI to OpenShift $ rhc setup Create ne DIY cartrige $ rhc app create SimpleBlog -t diy-0.1 --no-git -l <email> Output of last command will contain Git URL like this Git URL = ssh://your_uuid@SimpleBlog-yourdomain.rhcloud.com/~/git/SimpleBlog.git/ Remember it 4 вторник, 29 января 13 г.
  • 5. Add to Git Add code to OpenShift repo $ git init $ git remote add origin ssh://your_uuid@SimpleBlog- yourdomain.rhcloud.com/~/git/DimpleBlog.git/ $ git pull -s recursive -X theirs origin master $ git add . $ git commit -m "initial deploy" 5 вторник, 29 января 13 г.
  • 6. Add OpenShift config $ git remote add quickstart -m master git://github.com/opensas/ play2-openshift-quickstart.git $ git pull -s recursive -X theirs quickstart master Then use the stage task to prepare your deployment $ play clean compile stage git add . git commit -m "commit message" git push origin 6 вторник, 29 января 13 г.
  • 7. Done! Check you web app URL 7 вторник, 29 января 13 г.
  • 8. Links • http://www.playframework.org/ • https://openshift.redhat.com/ • https://github.com/opensas/play2-openshift- quickstart/ 8 вторник, 29 января 13 г.