An open API service indexing awesome lists of open source software.

https://github.com/daggerok/spring-boot-jboss

serving spring-boot app in JBoss EAP 6.4/7.1 / Tomcat embedded containers
https://github.com/daggerok/spring-boot-jboss

docker docker-compose embedded gradle jboss jboss-container jboss-eap jboss-embedded spring-boot

Last synced: about 1 year ago
JSON representation

serving spring-boot app in JBoss EAP 6.4/7.1 / Tomcat embedded containers

Awesome Lists containing this project

README

          

Spring Boot on JBOSS container [![build](https://travis-ci.org/daggerok/spring-boot-jboss.svg?branch=master)](https://travis-ci.org/daggerok/spring-boot-jboss)
==============================

fish (spring-boot)

```fish
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)

```fish
./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:
```shell
$ 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
==============================
```shell
$ 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
================
```bash
docker-compose down -v; ./gradlew; docker-compose up --build --force-recreate --remove-orphans
open http://127.0.0.1:8080/spring-boot-jboss/
```