Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,670
Community Members
 
Community Events
165
Community Groups

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

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 Aug 06, 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 Oct 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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you