-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add test run on Centos and Alpine
- Loading branch information
Showing
3 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG from_image | ||
FROM ${from_image} | ||
|
||
RUN uname -a | ||
RUN apk add ruby ruby-etc ruby-rake ruby-dev git gcc make musl-dev gcompat postgresql16 | ||
|
||
RUN ruby --version | ||
RUN ruby -e 'puts File.read("/proc/#{Process.pid}/maps")' | ||
RUN gem env | ||
RUN gem inst bundler --conservative | ||
|
||
WORKDIR /build | ||
|
||
CMD ruby -v && \ | ||
ruby -e "puts Gem::Platform.local.to_s" && \ | ||
gem install --local *.gem --verbose --no-document && \ | ||
bundle config set --local without 'development' && \ | ||
bundle install && \ | ||
ruby -rpg -S rake test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG from_image | ||
FROM ${from_image} | ||
|
||
RUN uname -a | ||
|
||
# Change download address of Centos-8 which is EOL | ||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | ||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
|
||
RUN yum install -y ruby-devel git gcc make redhat-rpm-config postgresql14-server | ||
|
||
RUN ruby --version | ||
RUN gem env | ||
|
||
RUN gem install rubygems-update:3.3.26 --no-doc && \ | ||
update_rubygems | ||
# centos-8 comes with Ruby 2.5, and this is the last version of bundler that supports it | ||
RUN gem install bundler -v2.2.28 | ||
|
||
WORKDIR /build | ||
|
||
CMD ruby -v && \ | ||
ruby -e "puts Gem::Platform.local.to_s" && \ | ||
gem install --local *.gem --verbose --no-document && \ | ||
bundle config set --local without 'development' && \ | ||
bundle install && \ | ||
ruby -rpg -S rake test |