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

https://github.com/hiejulia/book-project


https://github.com/hiejulia/book-project

docker kubernetes spring-boot

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# Book-project

#### Rest service

#### Run the project
+ `mvn package`
+ `java -jar target/book-project-1.0-SNAPSHOT.jar`

curl -H "Content-Type: application/json" -X POST -d '{"id":"1","author":"Krochmalski", "title":"IDEA"}' http://localhost:8080/books

curl -s http://localhost:8080/api/v1/namespaces/default/services -XPOST -H 'Content-Type: application/json' -d@service.json

curl -s http://localhost:8080/apis/extensions/v1beta1/namespaces/default/deployments -XPOST -H 'Content-Type: application/json' -d@deployment.json

https://192.168.99.100:8443/api/v1/namespaces/default/pods curl http://localhost:8080/api/v1/namespaces/default/pods

+ `docker build . -t rest-example`
+ docker image ls
+ docker run -it rest-example
+ Expose port :`docker run -p 8080:8080 -it rest-example`
+

#### Docker
+ Some official base image from Docker Hub
+ openjdk
+ fabric8/java-alpine-openjdk8-jdk
+ frolvlad/alpine-oraclejdk8
+ jeanblanchard/java: Official Oracle Java running on top of the Alpine Linux distribution