-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker Local Environment Updates (#1955)
* Docker fix for mysql args * Changes from docker-machine to docker, fixed uli * Added 'ahoy docker hostfile' to add to /etc/hosts * Make backwards compatible with docker-machine. * Make backwards compatible with docker-machine. Missed this one. * Add dkan-uli.rb script. Will handle function for `ahoy dkan uli`. * Move uli command back to dkan.ahoy.yml * Update CHANGELOG. * Remove .ahoy.yml uli command. Backports #1955 into 1.13.5
- Loading branch information
Showing
7 changed files
with
164 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
require 'yaml' | ||
|
||
# Deep merge only available in ruby >= 3.0 | ||
# TODO: replace defaults with custom deep_merge | ||
|
||
begin | ||
CONFIG = YAML.load_file("config/config.yml") | ||
rescue Exception => msg | ||
puts "Loading of Configuration errored out with: #{msg}." | ||
puts "Using default CONFIG instead." | ||
CONFIG = {"circle" => {"skip_features" => []}} | ||
CONFIG = {} | ||
end | ||
|
||
if not CONFIG.has_key? "circle" | ||
CONFIG["circle"] = {} | ||
end | ||
|
||
if not CONFIG["circle"].has_key? "skip_features" | ||
CONFIG["circle"]["skip_features"] = [] | ||
end | ||
|
||
if not CONFIG.has_key? "default" | ||
CONFIG["default"] = {} | ||
end | ||
|
||
if not CONFIG["default"].has_key? "https_everywhere" | ||
CONFIG["default"]["https_everywhere"] = false | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require "./dkan/.ahoy/.scripts/config.rb" | ||
|
||
if CONFIG["default"]["https_everywhere"] | ||
url="surl" | ||
else | ||
url="url" | ||
end | ||
|
||
url=`ahoy drush --uri="$(ahoy docker #{url})" uli` | ||
os =`uname` | ||
|
||
if os =~ /Darwin/ | ||
`open #{url}` | ||
else | ||
puts url | ||
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
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