#dockerizespringbootapp #dockerizespringbootusingintellij #dockerizeapp #intellijidea #createdockerimagespringboot #containerizespringbootusingbuildpack
How to Containerize springboot app(rest app using springboot)
Prerequisite
1. simple rest application build using spring boot(return list object users) you can download project from my github(https://github.com/AminTurmudiYusup/s...)
2. Docker already installed on your machine
3. buildpack tools already installed on your computer/your machine
If your machine not yet install buildpack check this website(https://buildpacks.io/docs/tools/pack/),
1. install buildpack depend your OS(i using ubuntu so, i follow this tutorial)
sudo add-apt-repository ppa:cncf-buildpacks/pack-cli
sudo apt-get update
sudo apt-get install pack-cli(because my laptop already installed buildpack)
2. navigate to project folder(using terminal/cmd)
3. run this command to create Dockerfile, and docker image automatically = mvn spring-boot:build-image
4. check image on local registry using this command = docker ps -a (springboot image not yet created)
5. run the springboot image that has been built using this command = docker run -it -p8080:8080 apibestpractice:0.0.1-SNAPSHOT
Success, see on the next tutorial !!!
Watch video containerize springboot using buildpack/add springboot to docker container online without registration, duration hours minute second in high quality. This video was added by user Programming Tutorial 26 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 76 once and liked it 0 people.