File tree Expand file tree Collapse file tree 2 files changed +28
-19
lines changed Expand file tree Collapse file tree 2 files changed +28
-19
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ source 'https://rubygems.org'
33gemspec
44
55if Gem ::Version . new ( RUBY_VERSION ) >= Gem ::Version . new ( "2.2" )
6- gem 'rake' , '~> 13.0.1 '
6+ gem 'rake' , '~> 13.0'
77else
88 gem 'rake' , '< 13'
99end
10- gem 'rake-compiler' , '~> 1.1 .0'
10+ gem 'rake-compiler' , '~> 1.2 .0'
1111
1212# For local debugging, irb is Gemified since Ruby 2.6
1313gem 'irb' , require : false
Original file line number Diff line number Diff line change @@ -4,22 +4,31 @@ FROM ${IMAGE}
44WORKDIR /build
55COPY . .
66
7- RUN cat /etc/redhat-release
8- RUN yum -yq update
9- RUN yum -yq install epel-release
10- # The options are to install faster.
11- RUN yum -yq install \
12- --setopt=deltarpm=0 \
13- --setopt=install_weak_deps=false \
14- --setopt=tsflags=nodocs \
15- gcc \
16- gcc-c++ \
17- git \
18- make \
19- mariadb-devel \
20- mariadb-server \
21- ruby-devel
22- RUN gem install --no-document "rubygems-update:~>2.7" && update_rubygems > /dev/null
23- RUN gem install --no-document "bundler:~>1.17"
7+ # mirrorlist.centos.org no longer exists, see
8+ # https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve/1161847#1161847
9+ #
10+ # The --setopt flags to yum enable faster installs
11+ #
12+ RUN cat /etc/redhat-release \
13+ && sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo \
14+ && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo \
15+ && sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo \
16+ && yum -y -q update \
17+ && yum -y -q install epel-release \
18+ && yum -y -q install \
19+ --setopt=deltarpm=0 \
20+ --setopt=install_weak_deps=false \
21+ --setopt=tsflags=nodocs \
22+ gcc \
23+ gcc-c++ \
24+ git \
25+ make \
26+ mariadb-devel \
27+ mariadb-server \
28+ ruby-devel
29+
30+ RUN gem install --no-document "rubygems-update:~>2.7" \
31+ && update_rubygems > /dev/null \
32+ && gem install --no-document "bundler:~>1.17"
2433
2534CMD bash ci/container.sh
You can’t perform that action at this time.
0 commit comments