Search code examples
dockercalabashcalabash-android

How to set up Docker file to install Calabash-android?


I am setting up Calabash-android inside a docker container. Could not find a proper method to edit the existing file. Can I simply use the command gem install calabash-android along with the other commands in the docket file? Thanks for the help in advance.


Solution

  • Yes, you can. But at first you need base image with ruby. You can choose it in https://hub.docker.com/_/ruby/ page. This is example config:

    FROM ruby:2.1-onbuild
    RUN gem install calabash-android
    

    Or you can just install Ruby in simple ubuntu based image:

    FROM fcat/ubuntu-universe:12.04
    RUN apt-get -qy install ruby1.9.1
    RUN gem install calabash-android