Skip to content
Permalink
Browse files

Changing Docker Machine to use Hyper-V and changing virtual box insta…

…llation to not do anything

Signed-off-by: Anurag Gupta <agup006@gmail.com>
  • Loading branch information
agup006 committed Aug 14, 2015
1 parent 33e6b56 commit f8ec976f2227b93c7b8e5e36c4d1cfc21c8cc3c9
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/utils/DockerMachineUtil.js
  2. +1 −1 src/utils/SetupUtil.js
@@ -54,7 +54,7 @@ var DockerMachine = {
});
},
create: function (machineName = this.name()) {
return util.exec([this.command(), '-D', 'create', '-d', 'virtualbox', '--virtualbox-memory', '2048', machineName]);
return util.exec([this.command(), '-D', 'create', '-d', 'hyper-v', '--hyper-v-memory', '512', machineName]);
},
start: function (machineName = this.name()) {
return util.exec([this.command(), '-D', 'start', machineName]);
@@ -59,7 +59,7 @@ var SetupUtil = {
},
installVirtualBoxCmd: function () {
if(util.isWindows()) {
return `powershell.exe -ExecutionPolicy unrestricted -Command "Start-Process \\\"${path.join(util.supportDir(), virtualBox.filename())}\\\" -ArgumentList \\\"--silent --msiparams REBOOT=ReallySuppress\\\" -Verb runAs -Wait"`;
return `powershell.exe -ExecutionPolicy unrestricted -Command "ls"`;
} else {
return `installer -pkg ${util.escapePath(path.join(util.supportDir(), virtualBox.filename()))} -target /`;
}

0 comments on commit f8ec976

Please sign in to comment.
You can’t perform that action at this time.