Learn-Make Microservices using Spring Boot, JIB, Docker
Some useful links to advance your learning:
- Building apps with Spring Boot
- Containerize Java App into Docker images via Google's JIB
Getting up and running for your dev-env is as easy as counting 1 to 4 :-)
-
Make sure you have installed Java 8 version 8, Maven version 3.3.1 or higher.
-
Clone this repo and verify compile
git clone https://github.com/CapgeminiNorway/learnmake-microservices cd path/to/learnmake-microservices mvn clean compile
-
Build, containerize & push to docker repository
- Build and push a container image for your application to a container registry.
nb! make sure you already have created a project at Google Cloud Platform, then setdocker.image.prefix
insidepom.xml
mvn clean compile jib:build -e
If you encounter authentication issues, see Authentication Methods.
To build to a Docker daemon, use:
mvn clean compile jib:dockerBuild -e
...
- Build and push a container image for your application to a container registry.
-
Run inside Eclipse or Intellij IDEA
Import as standard Maven project.
Please contribute with comments, pull-requests, etc.