Skip to content

asgeirf/wildfly8-gradle-clickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wildfly clickstart

This clickstart sets up a build service, repository and a basic Wildfly app with continuous deployment. All built by maven.

Launch this clickstart and glory could be yours too ! Use it as a building block if you like. You can launch this on Cloudbees via a clickstart automatically, or follow the instructions below.

This is based on the Wildfly stack that you can read more about here.

Deploying manually:

Create a Wildfly8 container

bees app:create -a my-wildfly8-app -t wildfly8

Create a MySQL Database

bees db:create my-wildfly8-db

Bind the MySQL Database to the Wildfly container

bees app:bind -a my-wildfly8-app -db my-wildfly8-db -as mydb

Supported JNDI names:

  • java:jboss/datasources/mydb : qualified JNDI name is supported / OK

Samples:

Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:jboss/datasources/mydb");

Configure Jdbc Realm

bees config:set -a my-wildfly8-app -R wildfly8.auth-realm.database=mydb

Deploy Application

bees app:deploy -a my-wildfly8-app path/to/my/app.war

Jenkins Job

Create a new Maven project in Jenkins, changing the following:

  • Add this git repository (or yours, with this code) on Jenkins

  • Also check "Deploy to CloudBees" with those parameters:

      Applications: First Match
      Application Id: MYAPP_ID
      Filename Pattern: target/*.war
    

where MYAPP_IDis the name of your application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published