#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 !!!
Смотрите видео containerize springboot using buildpack/add springboot to docker container онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Programming Tutorial 26 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 76 раз и оно понравилось 0 людям.