how to use bitbucket pipeline for spring boot application using docker?

piyush05 September 18, 2019

I want to use bitbucket pipeline for CI-CD. Right now I am doing it manually i.e. building spring boot application and then build a docker image and push it to the docker hub. Then in AWS ec2 server, I am pulling the latest image, stop the previous running container, start the latest docker build.

I want to set these step automatically using bitbucket pipeline and aws. 

Thanks

2 answers

0 votes
Mehmet
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 6, 2021

Hi @piyush05 ,

Did you find a solution?

I had below problem while trying to build spring-boot docker image in Bitbucket pipeline

msg="AuthZRequest for POST /v1.24/containers/create returned error: 
authorization denied by plugin pipelines:
-v only supports $BITBUCKET_CLONE_DIR and its subdirectories"

Similar problem: https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Spring-Boot-docker-build-with-build-image-fails-on-Bitbucket/qaq-p/1647605

0 votes
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 15, 2019

Hi @piyush05,

Our Pipes integrations with AWS should be able to help you out here, have a look at https://bitbucket.org/product/features/pipelines/integrations and see the documentation.

Alternatively there are few references that might be helpful like https://medium.com/@rohitgoyal/use-of-bitbucket-pipelines-to-deploy-spring-boot-application-in-google-app-engine-578da6fa9a42

If that doesn't answer your question please share where you're stuck with your bitbucket-pipelines.yml file so we can help you out.

Thanks,
Peter

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events