Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7.2 initial setup (unofficial postgis adapter) #4006

Draft
wants to merge 4 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ RUN [ "x$REVISION" != "x" ] && echo $REVISION > /app/REVISION && \
FROM base AS assets-precompiler

# http://blog.zeit.io/use-a-fake-db-adapter-to-play-nice-with-rails-assets-precompilation/
RUN bundle add activerecord-nulldb-adapter
RUN printf "production:\n adapter: nulldb" > config/database.yml \
&& printf "production:\n secret_key_base: $(bundle exec rails secret)" > config/secrets.yml
#RUN bundle add activerecord-nulldb-adapter
RUN bundle add activerecord-nulldb-adapter --github="taylorthurlow/nulldb" --ref=8183e9d
RUN printf "production:\n adapter: nulldb" > config/database.yml

# Precompiling and also removing config files just in case someone uses `docker build --target=assets-precompiler`

RUN NODE_OPTIONS="--max-old-space-size=4096" bundle exec rake assets:precompile \
&& rm config/database.yml config/secrets.yml
RUN NODE_OPTIONS="--max-old-space-size=4096" SECRET_KEY_BASE="$(bundle exec rails secret)" bundle exec rake assets:precompile \
&& rm config/database.yml

FROM base
COPY --from=assets-precompiler --chown=9999:9999 /app/public /app/public
Expand Down
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ ruby '>= 3.2', '< 3.4.0'
gem 'bundler', '~> 2.5'

gem 'rake', '~> 13.0'
gem 'rails', '~> 7.1'
gem 'rails', '~> 7.2'
gem 'pg', '~> 1.1'
gem 'activerecord-postgis-adapter', '~> 9.0'
#gem 'activerecord-postgis-adapter', '~> 9.0'
gem 'activerecord-postgis-adapter', github: 'rgeo/activerecord-postgis-adapter', branch: 'bump-7-2'
gem 'hiredis', '~> 0.6.1'
gem 'redis', '~> 4.5'
gem 'bootsnap', require: false
Expand Down
156 changes: 80 additions & 76 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,87 +39,89 @@ GIT
actionpack (>= 3.2)
railties (>= 3.2)

GIT
remote: https://github.com/rgeo/activerecord-postgis-adapter.git
revision: 763cef8c49f545f33f827f2b403d45fa761627fe
branch: bump-7-2
specs:
activerecord-postgis-adapter (9.0.2)
activerecord (~> 7.2.0)
rgeo-activerecord (~> 8.0.0)

GEM
remote: https://rubygems.org/
specs:
Ascii85 (1.1.1)
actioncable (7.1.4)
actionpack (= 7.1.4)
activesupport (= 7.1.4)
actioncable (7.2.1)
actionpack (= 7.2.1)
activesupport (= 7.2.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (7.1.4)
actionpack (= 7.1.4)
activejob (= 7.1.4)
activerecord (= 7.1.4)
activestorage (= 7.1.4)
activesupport (= 7.1.4)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.1.4)
actionpack (= 7.1.4)
actionview (= 7.1.4)
activejob (= 7.1.4)
activesupport (= 7.1.4)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
actionmailbox (7.2.1)
actionpack (= 7.2.1)
activejob (= 7.2.1)
activerecord (= 7.2.1)
activestorage (= 7.2.1)
activesupport (= 7.2.1)
mail (>= 2.8.0)
actionmailer (7.2.1)
actionpack (= 7.2.1)
actionview (= 7.2.1)
activejob (= 7.2.1)
activesupport (= 7.2.1)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
actionpack (7.1.4)
actionview (= 7.1.4)
activesupport (= 7.1.4)
actionpack (7.2.1)
actionview (= 7.2.1)
activesupport (= 7.2.1)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack (>= 2.2.4, < 3.2)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actiontext (7.1.4)
actionpack (= 7.1.4)
activerecord (= 7.1.4)
activestorage (= 7.1.4)
activesupport (= 7.1.4)
useragent (~> 0.16)
actiontext (7.2.1)
actionpack (= 7.2.1)
activerecord (= 7.2.1)
activestorage (= 7.2.1)
activesupport (= 7.2.1)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.1.4)
activesupport (= 7.1.4)
actionview (7.2.1)
activesupport (= 7.2.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (7.1.4)
activesupport (= 7.1.4)
activejob (7.2.1)
activesupport (= 7.2.1)
globalid (>= 0.3.6)
activemodel (7.1.4)
activesupport (= 7.1.4)
activerecord (7.1.4)
activemodel (= 7.1.4)
activesupport (= 7.1.4)
activemodel (7.2.1)
activesupport (= 7.2.1)
activerecord (7.2.1)
activemodel (= 7.2.1)
activesupport (= 7.2.1)
timeout (>= 0.4.0)
activerecord-postgis-adapter (9.0.2)
activerecord (~> 7.1.0)
rgeo-activerecord (~> 7.0.0)
activestorage (7.1.4)
actionpack (= 7.1.4)
activejob (= 7.1.4)
activerecord (= 7.1.4)
activesupport (= 7.1.4)
activestorage (7.2.1)
actionpack (= 7.2.1)
activejob (= 7.2.1)
activerecord (= 7.2.1)
activesupport (= 7.2.1)
marcel (~> 1.0)
activesupport (7.1.4)
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
acts_as_list (1.2.2)
activerecord (>= 6.1)
activesupport (>= 6.1)
Expand Down Expand Up @@ -233,8 +235,9 @@ GEM
railties (>= 5.0.0)
faker (3.4.2)
i18n (>= 1.8.11, < 2)
faraday (2.11.0)
faraday (2.12.0)
faraday-net_http (>= 2.0, < 3.4)
json
logger
faraday-excon (2.2.0)
excon (>= 0.109.0)
Expand Down Expand Up @@ -354,7 +357,6 @@ GEM
modularity (3.0.1)
msgpack (1.7.2)
multi_json (1.15.0)
mutex_m (0.2.0)
namae (1.2.0)
racc (~> 1.7)
namecase (2.0.0)
Expand Down Expand Up @@ -442,20 +444,20 @@ GEM
rackup (1.0.0)
rack (< 3)
webrick
rails (7.1.4)
actioncable (= 7.1.4)
actionmailbox (= 7.1.4)
actionmailer (= 7.1.4)
actionpack (= 7.1.4)
actiontext (= 7.1.4)
actionview (= 7.1.4)
activejob (= 7.1.4)
activemodel (= 7.1.4)
activerecord (= 7.1.4)
activestorage (= 7.1.4)
activesupport (= 7.1.4)
rails (7.2.1)
actioncable (= 7.2.1)
actionmailbox (= 7.2.1)
actionmailer (= 7.2.1)
actionpack (= 7.2.1)
actiontext (= 7.2.1)
actionview (= 7.2.1)
activejob (= 7.2.1)
activemodel (= 7.2.1)
activerecord (= 7.2.1)
activestorage (= 7.2.1)
activesupport (= 7.2.1)
bundler (>= 1.15.0)
railties (= 7.1.4)
railties (= 7.2.1)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.rc1)
Expand All @@ -471,10 +473,10 @@ GEM
rails (>= 3.2)
rails_or (1.1.9)
activerecord (>= 3)
railties (7.1.4)
actionpack (= 7.1.4)
activesupport (= 7.1.4)
irb
railties (7.2.1)
actionpack (= 7.2.1)
activesupport (= 7.2.1)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
Expand Down Expand Up @@ -509,9 +511,9 @@ GEM
rexml (3.3.7)
rgb (0.1.2)
rgeo (3.0.1)
rgeo-activerecord (7.0.1)
activerecord (>= 5.0)
rgeo (>= 1.0.0)
rgeo-activerecord (8.0.0)
activerecord (>= 7.0)
rgeo (>= 3.0)
rgeo-geojson (2.2.0)
multi_json (~> 1.15)
rgeo (>= 1.0.0)
Expand Down Expand Up @@ -607,6 +609,7 @@ GEM
tilt
sdoc (2.6.1)
rdoc (>= 5.0)
securerandom (0.3.1)
seedbank (0.5.0)
rake (>= 10.0)
selenium-webdriver (4.24.0)
Expand Down Expand Up @@ -688,6 +691,7 @@ GEM
tzinfo (>= 1.0.0)
unicode-display_width (2.6.0)
uri (0.13.1)
useragent (0.16.10)
validates_timeliness (7.0.0.beta2)
activemodel (>= 7.0.0, < 8)
timeliness (>= 0.3.10, < 1)
Expand Down Expand Up @@ -741,7 +745,7 @@ PLATFORMS
x86_64-linux-musl

DEPENDENCIES
activerecord-postgis-adapter (~> 9.0)
activerecord-postgis-adapter!
acts_as_list (~> 1.0)
addressable (~> 2.8)
amazing_print (~> 1.5)
Expand Down Expand Up @@ -813,7 +817,7 @@ DEPENDENCIES
puma (~> 6.3)
rack (~> 2.2.9)
rack-cors (~> 2.0)
rails (~> 7.1)
rails (~> 7.2)
rails-controller-testing (~> 1.0.2)
rails-jquery-autocomplete (~> 1.0.3)
rails_or (~> 1.1.8)
Expand Down
Loading