containerize springboot using buildpack/add springboot to docker container

Publicado el: 26 noviembre 2021
en el canal de: Programming Tutorial
76
0

#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 !!!


En esta página del sitio puede ver el video en línea containerize springboot using buildpack/add springboot to docker container de Duración hora minuto segunda en buena calidad , que subió el usuario Programming Tutorial 26 noviembre 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 76 veces y le gustó 0 a los espectadores. Disfruta viendo!