https://github.com/hiejulia/book-project
https://github.com/hiejulia/book-project
docker kubernetes spring-boot
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiejulia/book-project
- Owner: hiejulia
- Created: 2018-01-30T17:43:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T21:11:23.000Z (over 7 years ago)
- Last Synced: 2025-02-08T21:46:22.190Z (8 months ago)
- Topics: docker, kubernetes, spring-boot
- Language: Java
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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