https://github.com/robsonbittencourt/payara-micro-test
An simple aaplication to know how payara micro works
https://github.com/robsonbittencourt/payara-micro-test
docker java-ee-7 payara-micro
Last synced: about 1 month ago
JSON representation
An simple aaplication to know how payara micro works
- Host: GitHub
- URL: https://github.com/robsonbittencourt/payara-micro-test
- Owner: robsonbittencourt
- License: mit
- Created: 2017-08-01T15:10:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-19T14:47:56.000Z (almost 9 years ago)
- Last Synced: 2025-01-13T18:41:12.711Z (over 1 year ago)
- Topics: docker, java-ee-7, payara-micro
- Language: Java
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Payara Micro test
An simple aplication to know how payara micro works
[](https://travis-ci.org/robsonbittencourt/payara-micro-test) [](https://hub.docker.com/r/robsonbittencourt/payara-micro-test/) [](https://hub.docker.com/r/robsonbittencourt/payara-micro-test/) [](http://microbadger.com/images/robsonbittencourt/payara-micro-test)
>Payara Micro enables you to run WAR files from the command line without any application server installation.
## How to run with Docker
This project have a image in DockerHub. It's just a test, with the goal of demonstrating use with Docker.
```bash
docker run -d -p 8080:8080 --name=payara-micro robsonbittencourt/payara-micro-test
```
## How to build and run manually
Download Payara Micro jar in the [project download page](https://www.payara.fish/downloads).
```bash
## Build the application
mvn clean package
## Create UberJar with embedded Payara Micro
java -jar PATH_TO_PAYARA_MICRO_JAR --deploy target/payara-micro-test.war --outputUberJar payara-micro-test.jar
## Run generated UberJar
java -jar payara-micro-test.jar
```
Acess the following address to see the result
http://localhost:8080/payara-micro-test/rest/calculate/doubleOf/10
## Meta
Robson Bittencourt - @rluizv - robson.luizv@gmail.com
Distributed under the MIT license. See [LICENSE](LICENSE) for more information.
https://github.com/robsonbittencourt/payara-micro-test