containerize springboot using buildpack/add springboot to docker container

Publié le: 26 novembre 2021
sur la chaîne: 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 !!!


Sur cette page du site, vous pouvez voir la vidéo en ligne containerize springboot using buildpack/add springboot to docker container durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Programming Tutorial 26 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 76 fois et il a aimé 0 téléspectateurs. Bon visionnage!