JBoss Developer Studio 6.0

Similar documents
Red Hat Enterprise Linux OpenStack Platform 7 OpenStack Data Processing

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

JBoss Developer Studio 4.1

Red Hat JBoss Developer Studio 4.1 Smooks Developer Tools Reference Guide

Red Hat Subscription Management All Subscription Docs Quick Registration for RHEL

Red Hat JBoss Developer Studio 7.0 User Guide

JBoss Developer Studio 3.0

JBoss Developer Studio 3.0

Red Hat Enterprise Virtualization 3.0 User Portal Guide. Accessing and Using Virtual Machines from the User Portal Edition 1

JBoss Developer Studio 3.0

Guide to Red Hat Enterprise Linux 6 Software Collections

Cloud Tools Reference Guide. Version: GA

Red Hat Directory Server 8.2 Using the Directory Server Console

Counter-Strike Game Server Management Module

Red Hat Customer Portal 1 Managing User Access to the Red Hat Customer Portal and the Red Hat Network Application

Fedora 19. Fedora Documentation Project

Crystal Reports Installation Guide

Windows Firewall Configuration with Group Policy for SyAM System Client Installation

Red Hat CloudForms 3.1 Management Engine 5.3 OpenShift Enterprise Deployment Guide

Red Hat CloudForms 3.2 NetApp Storage Integration Guide

NETWRIX EVENT LOG MANAGER

Copyright Texthelp Limited All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval

There are numerous ways to access monitors:

SC-T35/SC-T45/SC-T46/SC-T47 ViewSonic Device Manager User Guide

Core Protection for Virtual Machines 1

Red Hat Cloud Infrastructure 5 Release Notes

SAM Server Utility User s Guide

WEBCONNECT INSTALLATION GUIDE. Version 1.96

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

Red Hat Customer Portal Current Customer Portal Subscription Management

IBM Endpoint Manager Version 9.1. Patch Management for Red Hat Enterprise Linux User's Guide

Integrating with BarTender Integration Builder

Composite.Community.Newsletter - User Guide

Discovery, Reporting, Capacity and Utilization Edition 1. ManageIQ Documentation Team

DESLock+ Basic Setup Guide Version 1.20, rev: June 9th 2014

Setting up Hyper-V for 2X VirtualDesktopServer Manual

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

Setting up Hyper-V for 2X VirtualDesktopServer Manual

XStream Remote Control: Configuring DCOM Connectivity

JBoss Enterprise SOA Platform 5 ESB Tools Reference Guide. This guide is for developers Edition 5.3.1

MultiSite Manager. User Guide

NovaBACKUP. Storage Server. NovaStor / May 2011

Defender Token Deployment System Quick Start Guide

unisys Unisys Stealth(cloud) for Amazon Web Services Deployment Guide Release 1.0 January

Wavecrest Certificate

Spambrella SaaS Encryption Enablement for Customers, Domains and Users Quick Start Guide

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Using GitHub for Rally Apps (Mac Version)

Abila Grant Management. Document Management

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Data Center Connector for OpenStack

Getting Started using the SQuirreL SQL Client

WhatsUp Gold v16.1 Installation and Configuration Guide

StreamServe Persuasion SP5 Control Center

Designing and Implementing Forms 34

Cloud Attached Storage

SaaS Encryption Enablement for Customers, Domains and Users Quick Start Guide

McAfee Cloud Identity Manager

Avalanche Remote Control User Guide. Version 4.1.3

Enabling Kerberos SSO in IBM Cognos Express on Windows Server 2008

How to set up Outlook Anywhere on your home system


SQ TRADING STATION User Guide & Installation

NexentaConnect for VMware Virtual SAN

McAfee Cloud Identity Manager

TIBCO Fulfillment Provisioning Session Layer for FTP Installation

Managing users. Account sources. Chapter 1

Configure the idrac Remote Access Console

Process Automation Administrator Guide

McAfee Directory Services Connector extension

Getting Started with Database-as-a-Service

USER CONFERENCE 2011 SAN FRANCISCO APRIL Running MarkLogic in the Cloud DEVELOPER LOUNGE LAB

2X Cloud Portal v10.5

Legal and Copyright Notice

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

QUANTIFY INSTALLATION GUIDE

Parallels Panel. Parallels Small Business Panel 10.2: User's Guide. Revision 1.0

Secure Agent Quick Start for Windows

Setting up VMware Server v1 for 2X VirtualDesktopServer Manual

Trend Micro PC-cillin Internet Security 2006

AVG 8.5 Anti-Virus Network Edition

Cloud Backup Express

Version 5.0. SurfControl Web Filter for Citrix Installation Guide for Service Pack 2

uh6 efolder BDR Guide for Veeam Page 1 of 36

Sophos Mobile Control Installation guide. Product version: 3.5

With Wakanda Cloud, you can publish a solution you created with Wakanda on the cloud. Wakanda Cloud allows you to:

Creating a Content Group and assigning the Encrypt action to the Group.

XenClient Enterprise Synchronizer Installation Guide

Organizing and Managing

AWS Service Catalog. User Guide

Spambrella SaaS Encryption Enablement for Customers, Domains and Users Quick Start Guide

SOA Software API Gateway Appliance 7.1.x Administration Guide

Getting Started With Halo for Windows For CloudPassage Halo

Sophos Mobile Control Startup guide. Product version: 3

CA Nimsoft Service Desk

Transcription:

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 1 JBoss Developer Studio 6.0 OpenShift Tools Reference Guide Provides information about the use of the JBoss Developer Studio with the Red Hat OpenShift service. Edition 6.0.0 Isaac Rooskov irooskov@redhat.com

2 Legal Notice Legal Notice Copyright 2011 Red Hat. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus T orvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. All other trademarks are the property of their respective owners.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 3 Abstract T he OpenShift T ools Reference Guide explains how to create a connection and utilize the OpenShift service from within JBoss Developer Studio.

4 Table of Contents Table of Contents Preface 1. Introduction 2. Creating an OpenShift Application 3. Import an existing application 4. Modifying your Maven Web Application to Deploy to OpenShift 5. Port Forwarding 6. Managing your SSH keys 7. Debugging 7.1. Viewing the Remote Console 7.2. Viewing Environment Variables 8. Deleting applications and domains 8.1. Deleting an application 8.2. Deleting a domain A. Getting Help and Giving Feedback A.1. Do You Need Help? A.2. Give us Feedback B. Revision History

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 5 Preface T his manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. T o get more information on these conventions please refer to the Docum ent Conventions manual, which can be found on the Red Hat Documentation website under the JBoss Developer Studio section.

6 Chapter 1. Introduction Chapter 1. Introduction OpenShift is a cloud solution for your application server requirements. OpenShift is a cloud-based application platform for Java, Perl, PHP, Python, and Ruby applications. JBoss Developer Studio supports OpenShift deployments and this guide will show you how to connect, create and deploy applications with OpenShift, from your workbench.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 7 Chapter 2. Creating an OpenShift Application T he OpenShift Application creation wizard is accessed through JBoss Central or by navigating to File New Other. Figure 2.1. Selecting the OpenShift Application wizard After clicking on the OpenShift Application link, the creation wizard will launch. Figure 2.2. Input OpenShift credentials

8 Chapter 2. Creating an OpenShift Application If you have already signed up for an OpenShift account then you can input your Username and Password here and click the Next button. If validation is successful you will see the Setup OpenShift Application screen. If you do not have an OpenShift account, you can create one through the link at the top of the wizard screen. T his will open the OpenShift sign-up page within your workbench. Once you have created an account you will need to relaunch the OpenShift Application wizard and input your new username and password. Note If you have a local OpenShift Cloud instance you can choose to connect to it instead by either selecting it from the available defined connections in the Connection list, or by deselecting the Use default server option and specifying your own in the Server field. Figure 2.3. Creating a domain If you need to create a domain, type the name you wish to have into the Domain name field. You will also need to ensure your public SSH key is provided and listed within the SSH2 Preferences. If you are unsure, click the SSH2 keys wizard link. Click Finish to complete domain creation. If you already have a domain name then you will not see the Domain Creation screen.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 9 Note If you ever wish to rename your domain, this can be done through the OpenShift Explorer. Figure 2.4. Creating a new OpenShift application

10 Chapter 2. Creating an OpenShift Application Now ready to create your OpenShift application, you will need to specify a name, the platform type to deploy for, from the T ype drop-down list, and the Gear profile to be used. The Gear profile option concerns the amount of physical space that will be allocated for use by the application. If you are running a trial version of OpenShift only the small Gear profile will be available to you. Note No underscores or special characters are allowed in the application name. You can also select to embed cartridges into your applicaiton. By embedding a cartridge, you allow your application the ability to use the associated technology. For example, embedding the m ysql cartridge will grant your application the capability to use a MySQL database.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 11 Figure 2.5. Application setup Since you are creating a new project, leave the Create a new project checkbox ticked. For easy interaction with the OpenShift server and your domain it is recommended that you leave the Create and setup a server for easy publishing checkbox ticked. Doing so will create an OpenShift server instance in the Servers view, upon completing the wizard.

12 Chapter 2. Creating an OpenShift Application Click the Next button to progress in the wizard. Figure 2.6. Cloning settings T he final screen of the OpenShift application wizard specifies Cloning settings. Here you can set the properties for creating a local copy of your application. The Location and Remote name options will be set automatically, however, you are able to change these by deselecting the default option and specifying custom settings in the fields provided.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 13 Click the Finish to begin the cloning of the Git repository. Figure 2.7. Project added to available Git repositories After the Git repository has been cloned, it will be available through the Git Repositories view. You can open it by navigating to Window Show View Other Git Git Repositories. With the Git Repositories option selected, click OK.

14 Chapter 2. Creating an OpenShift Application Figure 2.8. Project in Project Explorer T he OpenShift application that you created through the wizard, will appear in your Project Explorer tab. Figure 2.9. Publising your project through the server adapter The wizard has also created a server adapter that connects to your OpenShift service. In the Servers tab there will be an OpenShift server available that contains your application. Any changes you make locally to the application can be published to your OpenShift instance by right-clicking on the application under the server in the Servers view, and selecting Full Publish. Figure 2.10. OpenShift server overview and settings As with a local server, double-clicking on the OpenShift server instance in the Servers tab will open the server overview page in your workbench.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 15 Figure 2.11. OpenShift Explorer view T he OpenShift application will also be available under your domain in the OpenShift Explorer view.

16 Chapter 3. Import an existing application Chapter 3. Import an existing application T o import an existing OpenShift application to your workbench, from JBoss Central navigate to the Create Projects section and click on OpenShift Application. Figure 3.1. Selecting the OpenShift Application wizard Select your OpenShift server, enter your OpenShift credentials and click the Next button. Figure 3.2. Input OpenShift credentials

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 17 On the Setup OpenShift Application screen click the checkbox beside Use existing application and click the Browse button. Figure 3.3. Setup OpenShift Application screen A dialog will open where you will see all your OpenShift applications listed, for the current domain.

18 Chapter 3. Import an existing application Figure 3.4. Existing applications on OpenShift By selecting an application from the list and clicking the Details button you can see all relevant application information. Click the OK to return to the application selection screen.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 19 Figure 3.5. Details of OpenShift application Select the application to import and click the OK button. You will be returned to the Setup OpenShift Application screen and the Use existing application field will be populated with the name of the application you selected.

20 Chapter 3. Import an existing application Figure 3.6. Setup OpenShift Application screen T o complete importing the application click the Next button and continue follow the instructions after the Setup OpenShift Application screen that are available in the Creating an OpenShift Application chapter: Figure 2.6, Cloning settings.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 21 Chapter 4. Modifying your Maven Web Application to Deploy to OpenShift Open the pom.xml file of your web application in the editor by double-clicking on the file in your Project Explorer and selecting the pom.xm l tab in your workbench. Create profiles tags within the project tags of the pom.xm l file. Within the profiles tags, press Ctrl and Spacebar together to trigger auto-completion. From the auto-completion menu, select OpenShift profile. T he profile information to connect to OpenShift will be inserted. Figure 4.1. Selecting the OpenShift Profile

22 Chapter 5. Port Forwarding Chapter 5. Port Forwarding Port forwarding is available for each OpenShift application. T o access port forwarding for an application right-click on an application in the OpenShift Explorer view tab and select Port forwarding from the context menu. Figure 5.1. Port forwarding option T he Application port forward dialog will display ports that can be forwarded. T o forward all ports click the Start All and the Stop All button will stop port forwarding for all listed ports. If you do not wish to use the remote port numbers selected by default, click the checkbox beside the Find free ports for all Services option. The default local address is set to 127.0.0.1 and if the remote port is not available a random one will be generated. If your operating system supports it, you can uncheck Use 127.0.0.1 as the local address for all services and the local address will become the same as the remote address.

Figure 5.2. Port forwarding dialog JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 23

24 Chapter 6. Managing your SSH keys Chapter 6. Managing your SSH keys Figure 6.1. Selecting the OpenShift Application wizard The Manage SSH Keys wizard is available at the domain creation step when creating a new OpenShift application or through the context menu of a server in the OpenShift Explorer. Figure 6.2. Managing SSH keys view From the Manage SSH Keys view you can add an existing key with the Add Existing button, create a completely new key through the New button or remove a key association with your OpenShift account

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 25 by selecting the key from the list and clicking the Remove button. Selecting to create a new set of SSH keys through the New button will open the Add new SSH key screen. Figure 6.3. Add new SSH key screen You will need to name the new SSH key pair, as well as each key individually and provide a password for your private key (for security purposes). It is also possible to select where you would like to have the key saved on your system (the SSH2 Hom e field), however the default location is recommended. After you have filled the fields click the Finish button to create the keys and have your private key added automatically to the SSH2 Preferences list. If instead you wish to associate an existing SSH key with your OpenShift account, you can do this by selecting the Add Existing button. T his will open the Add existing SSH key screen.

26 Chapter 6. Managing your SSH keys Figure 6.4. Add existing SSH key screen You will need to name your existing SSH key and specify its location on your system. After you have filled in the fields click the Finish button to add the public key to your OpenShift account. You will have to add the private key manually and you can do this after having clicked the Finish button by clicking the SSH2 Preferences link in the Manage SSH Keys view.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 27 Chapter 7. Debugging T his chapter covers useful tools for debugging OpenShift servers and applications. 7.1. Viewing the Remote Console Similar to when you are running a server locally, you are also able to see console output for your remote OpenShift server. T o have this output displayed to you, right-click on your OpenShift application in the OpenShift view tab, and select T ail files. Figure 7.1. T ailing OpenShift server files option The dialog that opens allows you to modify the tail options. A default tail command will be present and you can always revert back to it by pressing the Reset button. Once you have completed setting the tail options you wish, click the Finish button.

28 Chapter 7. Debugging Figure 7.2. T ailing OpenShift server files option A new tab will open called Console and display the last 100 lines of the servers boot.log and server.log files. This Console tab will now tail the content of these files on the server, outputing any updates to you, as they occur. Figure 7.3. Viewing OpenShift server console output T his information can be useful in ensuring processes are executing as expected. 7.2. Viewing Environment Variables You are able to view the environment variables that an OpenShift application is utilizing and the current content of each variable. To have this output displayed to you right-click on your OpenShift server in the OpenShift view tab, and select Environment Variables.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 29 Figure 7.4. Selecting the Environment Variables menu item The output will appear in the Console view tab. Figure 7.5. Viewing OpenShift application environment variables T his information can be useful in ensuring an application is receiving the correct environment variable values.

30 Chapter 8. Deleting applications and domains Chapter 8. Deleting applications and domains T his chapter explains how to remove applications and domains from OpenShift. 8.1. Deleting an application Deleting an application will only remove it from the OpenShift server. T he application and OpenShift server adapter will remain in your workbench. T o remove an application right-click on it in the OpenShift Explorer view tab and select Delete Application(s) from the context menu. Figure 8.1. Delete Application(s) menu item A dialog window will display asking you to confirm the action and alerting you that you will not be able to recover the application one it has been deleted. Click the OK button to delete the application. Figure 8.2. Confirming application deletion Once the application has been deleted you will notice that it has been removed from the list of applications available on your OpenShift server.

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 31 Figure 8.3. Application removed 8.2. Deleting a domain T o delete a domain right-click on your server connection in the OpenShift Explorer view tab and select Delete Domain from the context menu. Figure 8.4. Delete Domain menu item A dialog box will be displayed asking you to confirm domain deletion. As a domain can only be deleted if it has no applications associated with it, an option is available to Force applications deletion. By selecting this checkbox any applications still associated with the domain will be deleted and unrecoverable. Warning It is recommended that you remove applications individually before deleting a domain to ensure you have created a copy of any application data you wish to keep. If you do not select the Force applications deletion option and the domain to be removed still has an application associated with it, domain deletion will fail.

32 Chapter 8. Deleting applications and domains Figure 8.5. Confirming domain deletion Once the domain has been deleted the connection to OpenShift will remain, however the Delete Domain option will not be available from the context menu. Figure 8.6. Delete Domain option not available

JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 33 Getting Help and Giving Feedback A.1. Do You Need Help? If you experience difficulty with a procedure described in this documentation, visit the Red Hat Customer Portal at http://access.redhat.com. T hrough the customer portal, you can: search or browse through a knowledgebase of technical support articles about Red Hat products. submit a support case to Red Hat Global Support Services (GSS). access other product documentation. Red Hat also hosts a large number of electronic mailing lists for discussion of Red Hat software and technology. You can find a list of publicly available mailing lists at https://www.redhat.com/mailman/listinfo. Click on the name of any mailing list to subscribe to that list or to access the list archives. A.2. Give us Feedback If you find a typographical error, or know how this guide can be improved, we would love to hear from you. Submit a report in Bugzilla against the product JBoss Developer Studio and the component OpenShift T ools Reference Guide. T he following link will take you to a pre-filled bug report for this product: http://bugzilla.redhat.com/. Fill out the following template in Bugzilla's Description field. Be as specific as possible when describing the issue; this will help ensure that we can fix it quickly. Document URL: Section Number and Name: Describe the issue: Suggestions for improvement: Additional information: Be sure to give us your name so that you can receive full credit for reporting the issue.

34 Revision History Revision History Revision 1-1 Fri Nov 16 2012 Isaac Rooskov Updated for JBoss Developer Studio 6