-
Notifications
You must be signed in to change notification settings - Fork 0
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 #898 from pulibrary/i861-move-to-lando
Switch to using lando for dev and test
- Loading branch information
Showing
12 changed files
with
98 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,27 @@ | ||
name: dpul | ||
services: | ||
dpul_development_db: | ||
type: postgres:10 | ||
portforward: true | ||
creds: | ||
database: dpul_development | ||
dpul_test_db: | ||
type: postgres:10 | ||
portforward: true | ||
creds: | ||
database: dpul_test | ||
dpul_development_solr: | ||
type: solr:7 | ||
portforward: true | ||
core: blacklight-core | ||
config: | ||
dir: solr/config | ||
dpul_test_solr: | ||
type: solr:7 | ||
portforward: true | ||
core: blacklight-core-test | ||
config: | ||
dir: solr/config | ||
dpul_redis: | ||
type: redis:6 | ||
portforward: true |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
# 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