-
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 Fedora and Alpine
- Loading branch information
Showing
10 changed files
with
113 additions
and
19 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
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,27 @@ | ||
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 | ||
|
||
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 sudo -u postgres initdb -D /var/lib/postgresql/ && \ | ||
mkdir -p /run/postgresql && \ | ||
chown postgres /run/postgresql | ||
|
||
WORKDIR /build | ||
|
||
CMD ruby -v && \ | ||
ruby -e "puts Gem::Platform.local.to_s" && \ | ||
sudo -u postgres pg_ctl -D /var/lib/postgresql/ start && \ | ||
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::IS_BINARY_GEM, PG::BUNDLED_LIBPQ_WITH_UNIXSOCKET; puts PG.connect.exec('SELECT version()').values; p PG.connect.host" && \ | ||
sudo -u postgres ruby -rpg -S rspec -fd spec/**/*_spec.rb |
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 | ||
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 | ||
RUN sudo -u postgres initdb -D /var/lib/pgsql/data && \ | ||
mkdir -p /run/postgresql && \ | ||
chown postgres /run/postgresql | ||
|
||
WORKDIR /build | ||
|
||
CMD ruby -v && \ | ||
ruby -e "puts Gem::Platform.local.to_s" && \ | ||
sudo -u postgres pg_ctl -D /var/lib/pgsql/data start && \ | ||
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::IS_BINARY_GEM, PG::BUNDLED_LIBPQ_WITH_UNIXSOCKET; puts PG.connect.exec('SELECT version()').values; p PG.connect.host" && \ | ||
sudo -u postgres ruby -rpg -S rspec -fd spec/**/*_spec.rb |
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