-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate docker tooling with Mongoid
(#4955) * Update spec/shared * Integrate docker tooling with Mongoid * remove mongo-orchestration * remove --server flag since jruby claims it is useless * update distro names * remove redundant configuration * set MONGODB_URI * run old servers on 14.04 * switch more to ubuntu1404 * separate ubuntu1404 and ubuntu1604 configurations * respect TEST_CMD for docker * Use ubuntu1604 for app tests to get a newer nodejs runtime * Install nodejs for Mongoid app tests * ubuntu1604 is still too old, try ubuntu1804 * use headless jres * only install Mongoid app testing bits on ubuntu1804 * apt update & install in the same command * respect INTERACTIVE env var for docker * fix uri options addition * construct URI for app tests more intelligently Co-authored-by: Oleg Pudeyev <[email protected]>
- Loading branch information
Showing
10 changed files
with
126 additions
and
87 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/Dockerfile | ||
|
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,12 @@ | ||
#!/usr/bin/env ruby | ||
|
||
desired_version, arch = ARGV | ||
if arch.nil? | ||
STDERR.puts "Usage: get-mongodb-download-url desired-version arch" | ||
exit 1 | ||
end | ||
|
||
$: << File.join(File.dirname(__FILE__), '../spec/shared/lib') | ||
require 'mrss/server_version_registry' | ||
|
||
puts Mrss::ServerVersionRegistry.new(desired_version, arch).download_url |
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,18 @@ | ||
#!/bin/sh | ||
|
||
# Patches debuggers to not ask for confirmation on exit. | ||
# byebug tracking issue: https://github.com/deivid-rodriguez/byebug/issues/404 | ||
# byebug proposed patch: https://github.com/deivid-rodriguez/byebug/pull/605 | ||
|
||
root="$1" | ||
if test -z "$root"; then | ||
root=$HOME/.rbenv | ||
fi | ||
|
||
find "$root" -name quit.rb -path '*/byebug/*' -exec \ | ||
sed -e '/quit.confirmations.really/d' -i {} \; | ||
|
||
# JRuby ruby-debug | ||
|
||
find "$root" -name quit.rb -path '*/ruby-debug/*' -exec \ | ||
sed -e 's/confirm("Really quit.*")/true/' -i {} \; |
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,11 @@ | ||
#!/usr/bin/env ruby | ||
|
||
$: << File.join(File.dirname(__FILE__), '../spec/shared/lib') | ||
require 'mrss/docker_runner' | ||
|
||
Mrss::DockerRunner.new( | ||
image_tag: 'mongoid-test', | ||
dockerfile_path: '.evergreen/Dockerfile', | ||
default_script: 'bash -x .evergreen/run-tests.sh', | ||
project_lib_subdir: 'mongoid', | ||
).run |
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
Submodule shared
updated
5 files
+18 −0 | lib/mrss/constraints.rb | |
+262 −0 | lib/mrss/docker_runner.rb | |
+69 −0 | lib/mrss/server_version_registry.rb | |
+227 −0 | share/Dockerfile.erb | |
+270 −0 | shlib/server.sh |