-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #897 from pulibrary/890-lando
Add lando and remove solr_wrapper
- Loading branch information
Showing
14 changed files
with
119 additions
and
96 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,22 @@ | ||
name: pulmap | ||
services: | ||
pulmap_test_solr: | ||
type: solr:8.4 | ||
portforward: true | ||
core: pulmap-core-test | ||
config: | ||
dir: "solr/conf" | ||
pulmap_development_solr: | ||
type: solr:8.4 | ||
portforward: true | ||
core: pulmap-core-dev | ||
config: | ||
dir: "solr/conf" | ||
pulmap_database: | ||
type: postgres:10 | ||
portforward: true | ||
proxy: | ||
pulmap_test_solr: | ||
- pulmap.test.solr.lndo.site:8983 | ||
pulmap_development_solr: | ||
- pulmap.dev.solr.lndo.site:8983 |
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
default: &default | ||
adapter: sqlite3 | ||
adapter: postgresql | ||
encoding: unicode | ||
host: <%= ENV["lando_pulmap_database_conn_host"] || ENV["PULMAP_DB_HOST"] || "localhost" %> | ||
port: <%= ENV["lando_pulmap_database_conn_port"] || 5432 %> | ||
username: <%= ENV["lando_pulmap_database_creds_user"] || ENV["PULMAP_DB_USERNAME"] %> | ||
password: <%= ENV["lando_pulmap_database_creds_password"] || ENV["PULMAP_DB_PASSWORD"] %> | ||
database: <%= ENV['PULMAP_DB'] %> | ||
pool: 5 | ||
timeout: 5000 | ||
|
||
development: | ||
<<: *default | ||
database: db/development.sqlite3 | ||
database: pulmap_development | ||
|
||
# Warning: The database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: | ||
<<: *default | ||
database: db/test.sqlite3 | ||
database: pulmap_test | ||
|
||
production: &deploy | ||
production: | ||
<<: *default | ||
adapter: postgresql | ||
database: <%= ENV["PULMAP_DB"] %> | ||
host: <%= ENV["PULMAP_DB_HOST"] %> | ||
username: <%= ENV["PULMAP_DB_USERNAME"] %> | ||
password: <%= ENV["PULMAP_DB_PASSWORD"] %> | ||
|
||
staging: *deploy | ||
staging: | ||
<<: *default |
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,17 @@ | ||
# frozen_string_literal: true | ||
if Rails.env.development? || Rails.env.test? | ||
begin | ||
lando_services = JSON.parse(`lando info --format json`, symbolize_names: true) | ||
lando_services.each do |service| | ||
service[:external_connection]&.each do |key, value| | ||
ENV["lando_#{service[:service]}_conn_#{key}"] = value | ||
end | ||
next unless service[:creds] | ||
service[:creds].each do |key, value| | ||
ENV["lando_#{service[:service]}_creds_#{key}"] = value | ||
end | ||
end | ||
rescue StandardError | ||
nil | ||
end | ||
end |
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
Oops, something went wrong.