containerize springboot using buildpack/add springboot to docker container

Publicado em: 26 Novembro 2021
no 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 !!!


Nesta página do site você pode assistir ao vídeo on-line containerize springboot using buildpack/add springboot to docker container duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Programming Tutorial 26 Novembro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 76 vezes e gostou 0 espectadores. Boa visualização!