How to use ruby docker image for Bitbucket Pipeline?

I am facing issue while using pipeline for ruby script. I have file the issue in bitbucket also, Issue #15542 https://bitbucket.org/site/master/issues/15542/pipeline-script-bundle-install-could-not1

Kindly find the pipeline configuration. getting error “Could not locate Gemfile”.

image: ruby:2.4.0 pipelines: default: - step: script: - ruby - v - bundle install

Also asked question of community also https://community.developer.atlassian.com/t/how-to-use-this-ruby-docker-image/13806

 

Kindly help me with this issue,  

1 answer

0 vote

Hi Tushar,

Do you have a Gemfile in the root directory of your repository?

If not, you'll need to change directory and then run your installation command. For example:

image: ruby:2.4.0
pipelines:
  default:
    - step:
        script:
          - ruby - v
- cd app - bundle install

Hope this helps!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,448 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you