https://github.com/abhirockzz/javaee8-jsonb-jpa
JSON-B 1.0, JPA 2.2 using Java EE 8 on Glassfish 5 & Docker
https://github.com/abhirockzz/javaee8-jsonb-jpa
docker javaee8 jpa json-b
Last synced: 9 months ago
JSON representation
JSON-B 1.0, JPA 2.2 using Java EE 8 on Glassfish 5 & Docker
- Host: GitHub
- URL: https://github.com/abhirockzz/javaee8-jsonb-jpa
- Owner: abhirockzz
- License: gpl-2.0
- Created: 2017-07-13T11:15:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T11:00:12.000Z (over 8 years ago)
- Last Synced: 2025-02-13T16:32:23.344Z (11 months ago)
- Topics: docker, javaee8, jpa, json-b
- Language: Java
- Homepage: https://medium.com/oracledevs/try-out-json-b-1-0-jpa-2-2-using-java-ee-8-on-glassfish-5-docker-fe7ca45a6e7
- Size: 19.5 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Run locally on Docker
- `git clone https://github.com/abhirockzz/javaee8-jsonb-jpa.git`
- `mvn clean install` - this will produce `javaee8-jsonb-jpa.war` in `target` directory
- `docker build -t .` - this will create a Docker image
- `docker run --rm -it -e ADMIN_PASSWORD= -p 8080:8080 -p 4848:4848 -p 8181:8181 `
- what's the Docker host IP ? `docker-machine ip` (e.g. 192.168.99.100)
## Run it on Oracle Container Cloud
[See this](https://community.oracle.com/community/cloud_computing/oracle-cloud-developer-solutions/blog/2017/07/13/try-our-json-b-10-jpa-22-using-java-ee-8-on-glassfish-5#jive_content_id_Run_on_Oracle_Container_Cloud)
## Test it...
- Fetch all employees `http://:8080/javaee8-jsonb-jpa/`. You will get a JSON payload with all employees
- Fetch an employee - `http://:8080/javaee8-jsonb-jpa/abhirockzz@gmail.com`. You will see a JSON payload in as a response