aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2019-01-04 13:54:14 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2019-01-04 13:54:14 -0800
commit6fc7adf2772507b0e3596ebf20c2cfaef589e52d (patch)
treee24523cba5502fb92437912cf11a82364649fefe /tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile
parenta5ed3d245e448c1e0e0e28b93e5821aaa7a3e439 (diff)
parent89f7d619ef23e400e36f8906876a2633d943847e (diff)
Merge branch 'master' into bidiinterceptiontest
Diffstat (limited to 'tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile')
-rw-r--r--tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile19
1 files changed, 17 insertions, 2 deletions
diff --git a/tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile b/tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile
index e1177fd99a..8044adf15d 100644
--- a/tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile
+++ b/tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile
@@ -19,6 +19,21 @@ FROM fedora:21
# https://github.com/docker/docker/issues/10180
RUN yum install -y yum-plugin-ovl
-RUN yum clean all && yum update -y && yum install -y ruby findutils
+# distro-sync and install openssl, per https://github.com/fedora-cloud/docker-brew-fedora/issues/19
+RUN yum clean all && yum update -y && yum distro-sync -y && yum install -y openssl gnupg which findutils tar
-RUN gem install bundler
+# Install rvm
+RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
+RUN curl -sSL https://get.rvm.io | bash -s stable
+
+# Install Ruby 2.2
+RUN /bin/bash -l -c "rvm install ruby-2.2.10"
+RUN /bin/bash -l -c "rvm use --default ruby-2.2.10"
+RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc"
+RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc"
+RUN /bin/bash -l -c "echo 'rvm --default use ruby-2.2.10' >> ~/.bashrc"
+RUN /bin/bash -l -c "gem install bundler -v 1.17.3 --no-document"
+
+RUN mkdir /var/local/jenkins
+
+RUN /bin/bash -l -c "echo '. /etc/profile.d/rvm.sh' >> ~/.bashrc"