spring-boot-jboss

Created: 2015-07-24 23:13
Updated: 2019-01-31 08:34
License: mit

README.md

Spring Boot on JBOSS container build

fish (spring-boot)

set -gx JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/
bash ./gradlew -PspringBoot.executable=true
bash ./build/libs/*.war
http :8080 name=Maksimko
http :8080
http :8080/info

bash (docker)

./gradlew
docker-compose up --build --force-recreate --remove-orphans
http :8080/spring-boot-jboss name=Maksimko
http :8080/spring-boot-jboss/
http :8080/spring-boot-jboss/info

NOTE: to avoid any build errors use gradle wrapper: bash gradlew clean build

  1. download and unzip jboss-eap-6.4 for example into ~/jboss-eap-6.4/
  2. folow these steps:
    $ git clone --depth=1 https://github.com/daggerok/spring-boot-jboss.git jboss-boot
    $ cd jboss-boot
    $ ./gradlew build
    $ cp build/libs/spring-boot-jboss-1.0.war.original ~/jboss-eap-6.4/standalone/deployments/spring-boot-jboss-1.0.war
    $ ~/jboss-eap-6.4/bin/standalone.sh 
  3. open http://localhost:8080/spring-boot-jboss/

Spring Boot Embedded container

$ git clone --depth=1 https://github.com/daggerok/spring-boot-jboss.git jboss-boot
$ cd jboss-boot
$ ./gradlew build
$ ./gradlew bootRun

open http://localhost:8080/

Docker / Compose

docker-compose down -v; ./gradlew; docker-compose up --build --force-recreate --remove-orphans
open http://127.0.0.1:8080/spring-boot-jboss/
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more