Skip to content

Commit 794ca50

Browse files
authored
Merge pull request #1400 from sodabrew/update-rake-compiler
* CI: allow newer rake, rake-compiler dependencies * CI: fixes for centos 7 dockerfile
2 parents 57b8df1 + cd6fc60 commit 794ca50

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ source 'https://rubygems.org'
33
gemspec
44

55
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.2")
6-
gem 'rake', '~> 13.0.1'
6+
gem 'rake', '~> 13.0'
77
else
88
gem 'rake', '< 13'
99
end
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
1313
gem 'irb', require: false

ci/Dockerfile_centos

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,31 @@ FROM ${IMAGE}
44
WORKDIR /build
55
COPY . .
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

2534
CMD bash ci/container.sh

0 commit comments

Comments
 (0)