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'
3
3
gemspec
4
4
5
5
if Gem ::Version . new ( RUBY_VERSION ) >= Gem ::Version . new ( "2.2" )
6
- gem 'rake' , '~> 13.0.1 '
6
+ gem 'rake' , '~> 13.0'
7
7
else
8
8
gem 'rake' , '< 13'
9
9
end
10
- gem 'rake-compiler' , '~> 1.1 .0'
10
+ gem 'rake-compiler' , '~> 1.2 .0'
11
11
12
12
# For local debugging, irb is Gemified since Ruby 2.6
13
13
gem 'irb' , require : false
Original file line number Diff line number Diff line change @@ -4,22 +4,31 @@ FROM ${IMAGE}
4
4
WORKDIR /build
5
5
COPY . .
6
6
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"
24
33
25
34
CMD bash ci/container.sh
You can’t perform that action at this time.
0 commit comments