diff --git a/Dockerfile b/Dockerfile index 328e69d..d0b8312 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,11 +37,14 @@ ENV PATH "$PATH:$RBENV_ROOT/shims" RUN mkdir -p "$RBENV_ROOT"/plugins RUN git clone https://github.com/rbenv/ruby-build.git "$RBENV_ROOT"/plugins/ruby-build -# Install default ruby env +# Install ruby envs RUN echo “install: --no-document” > ~/.gemrc ENV RUBY_CONFIGURE_OPTS=--disable-install-doc -RUN rbenv install 2.7.0 -RUN rbenv global 2.7.0 +RUN rbenv install 2.7.1 +RUN rbenv install 2.6.6 + +# Setup default ruby env +RUN rbenv global 2.7.1 RUN gem install bundler:2.1.4 # Install Google Cloud CLI diff --git a/README.md b/README.md index dbffb73..91790d3 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Docker allows you to provide a replicable environment, which does not change wit It should work out of the box on any CI/CD service providing docker support. The image is providing standard tools to build and test Android application: * Android SDK (optionally Android NDK) -* Default Ruby env through [rbenv](https://github.com/rbenv/rbenv) (for [Fastlane](https://fastlane.tools/) for instance) +* [Fastlane first class support](https://github.com/faberNovel/docker-android#fastlane-first-class-support) * Java JDK * Google Cloud CLI, to support [Firebase Test Lab](https://firebase.google.com/docs/test-lab) @@ -25,6 +25,7 @@ The image is providing standard tools to build and test Android application: ## Fastlane first-class support Images are built to have first class support for Fastlane. +Ruby versions in [`normal maintenance`](https://www.ruby-lang.org/en/downloads/branches/) mode are installed using [rbenv](https://github.com/rbenv/rbenv). If you are using a Fastlane plugin which requires a native library: - Install it using `apt-get update && apt-get -y install ` in your CI workflow.