Skip to content
serving spring-boot app in JBoss EAP 6.4/7.1 / Tomcat embedded containers
Java Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src/main
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
build.gradle
docker-compose.yaml
gradlew
gradlew.bat
settings.gradle

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/
You can’t perform that action at this time.