-
Notifications
You must be signed in to change notification settings - Fork 180
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 Fedora and Alpine
- Loading branch information
Showing
8 changed files
with
94 additions
and
12 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
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
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,25 @@ | ||
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 sudo openrc | ||
|
||
RUN git config --global --add safe.directory /build | ||
RUN ruby --version | ||
RUN ruby -e 'puts File.read("/proc/#{Process.pid}/maps")' | ||
RUN gem env | ||
RUN gem inst bundler --conservative | ||
RUN gem list | ||
RUN rc-update add postgresql | ||
|
||
WORKDIR /build | ||
|
||
CMD ruby -v && \ | ||
(rc-service postgresql start || true) && \ | ||
ruby -e "puts Gem::Platform.local.to_s" && \ | ||
chmod -R ugo+wrX . && \ | ||
gem install --local *.gem --verbose --no-document && \ | ||
bundle config set --local without 'development' && \ | ||
bundle install && \ | ||
sudo -u postgres ruby -rpg -e "p RUBY_DESCRIPTION, PG::VERSION, PG::POSTGRESQL_LIB_PATH, PG::BUNDLED_LIBPQ_WITH_UNIXSOCKET; puts PG.connect.exec('SELECT version()').values" && \ | ||
sudo -u postgres 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,23 @@ | ||
ARG from_image | ||
FROM ${from_image} | ||
|
||
RUN uname -a | ||
RUN yum install -y ruby-devel rake git gcc make redhat-rpm-config postgresql-server | ||
|
||
RUN git config --global --add safe.directory /build | ||
RUN ruby --version | ||
RUN ruby -e 'puts File.read("/proc/#{Process.pid}/maps")' | ||
RUN gem env | ||
RUN gem inst bundler --conservative | ||
RUN gem list | ||
|
||
WORKDIR /build | ||
|
||
CMD ruby -v && \ | ||
ruby -e "puts Gem::Platform.local.to_s" && \ | ||
chmod -R ugo+wrX . && \ | ||
gem install --local *.gem --verbose --no-document && \ | ||
bundle config set --local without 'development' && \ | ||
bundle install && \ | ||
sudo -u postgres ruby -rpg -e "p RUBY_DESCRIPTION, PG::VERSION, PG::POSTGRESQL_LIB_PATH, PG::BUNDLED_LIBPQ_WITH_UNIXSOCKET; puts PG.connect.exec('SELECT version()').values" && \ | ||
sudo -u postgres 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