VOOZH about

URL: https://www.javacodegeeks.com/2015/02/quick-start-spring-boot-and-wildffly-8-2-on-openshift.html

⇱ Quick Start: Spring Boot and WildfFly 8.2 on OpenShift - Java Code Geeks


A really β€œQuick Start” with Spring Boot, WildFly and OpenShift as opposed to my last, more descriptive article.

Prerequisite

Before we can start building the application, we need to have an OpenShift free account and client tools installed.

Step 1: Create WildFly application

To create an application using client tools, type the following command:

rhc create-app <app-name> jboss-wildfly-8 --scaling

This command creates an application using WildFly 8.2 cartridge with scalability option and clones the repository to <app-name> directory.

Step 2: Delete Template Application Source code

OpenShift creates a template project that can be freely removed:

git rm -rf .openshift deployments src README.md pom.xml

Commit the changes:

git commit -am "Removed template application source code"

Step 3: Pull Source code from GitHub

git remote add upstream https://github.com/kolorobot/openshift-wildfly-spring-boot.git
git pull -s recursive -X theirs upstream master

Step 4: Push changes

The basic template is ready to be pushed to OpenShift:

git push

The initial deployment (build and application startup) will take some time (up to several minutes). Subsequent deployments are a bit faster.

You can now browse to: http://<app-name>-<domain>.rhcloud.com and you should see home page with the form.

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

πŸ‘ Photo of Rafal Borowiec
Rafal Borowiec
February 25th, 2015Last Updated: February 24th, 2015
0 88 1 minute read

Rafal Borowiec

Software developer, Team Leader, Agile practitioner, occasional blogger, lecturer. Open Source enthusiast, quality oriented and open-minded.
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz