|  | @@ -14,6 +14,26 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  FROM fedora:22
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -RUN yum clean all && yum update -y && yum install -y ruby findutils
 | 
	
		
			
				|  |  | +# Make yum work properly under docker when using overlay storage driver.
 | 
	
		
			
				|  |  | +# https://bugzilla.redhat.com/show_bug.cgi?id=1213602#c9
 | 
	
		
			
				|  |  | +# https://github.com/docker/docker/issues/10180
 | 
	
		
			
				|  |  | +RUN yum install -y yum-plugin-ovl
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -RUN gem install bundler
 | 
	
		
			
				|  |  | +# 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 procps
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +# 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.3
 | 
	
		
			
				|  |  | +RUN /bin/bash -l -c "rvm install ruby-2.3.8"
 | 
	
		
			
				|  |  | +RUN /bin/bash -l -c "rvm use --default ruby-2.3.8"
 | 
	
		
			
				|  |  | +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.3.8' >> ~/.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"
 |