User Tools

Site Tools


juju-testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
juju-testing [2015/03/19 14:02]
gsamfira [Getting a SSL enabled version of mongod.exe]
juju-testing [2015/07/09 15:54] (current)
bteleaga
Line 65: Line 65:
   - compile your own   - compile your own
  
-You can get a  {{:mongo.zip|precompiled version of mongod.exe here}}.+You can get a  {{:mongo-static.zip|precompiled version of mongod.exe here}}. (md5: 27a623932453e1cf80c6889a81335ee8)
  
 To download it via PowerShell type in the following command in the PowerShell prompt: To download it via PowerShell type in the following command in the PowerShell prompt:
  
-  Start-BitsTransfer http://wiki.cloudbase.it/_media/mongo.zip+  Start-BitsTransfer http://wiki.cloudbase.it/_media/mongo-static.zip
      
 If you have not already done so, install 7zip: If you have not already done so, install 7zip:
  
-  choco install 7zip+  choco install -y 7zip
      
 You will also need the Visual Studio redistributable package for mongo to work: You will also need the Visual Studio redistributable package for mongo to work:
  
-  choco install vcredist2013 +  choco install -y vcredist2013 
-  choco install vcredist2008 +  choco install -y vcredist2008
- +
-Get a copy of OpenSSL for Windows: +
- +
-  Start-BitsTransfer http://slproweb.com/download/Win64OpenSSL-1_0_1L.exe +
-  .\Win64OpenSSL-1_0_1L.exe+
      
 Now let's extract mongo: Now let's extract mongo:
  
-  & "C:\Program Files\7-Zip\7-Zip.exex mongo.zip+  & 'C:\Program Files\7-Zip\7z.exex mongo-static.zip
      
 You should have a a mongod.exe file. Lets check if it actually works: You should have a a mongod.exe file. Lets check if it actually works:
  
-  .\mongod.exe --version +  PS C:\Users\Administrator> .\mongod.exe --version 
-   +  db version v2.6.3 
-You should have the mongo version. If you get errors of any kind regarding SSL, downgrade the OpenSSL version to an earlier one.+  2015-04-03T11:57:55.699-0700 git version: 255f67a66f9603c59380b2a389e386910bbb52cb 
 +  2015-04-03T11:57:55.699-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011
  
 ==== Adding mongod to your $PATH ==== ==== Adding mongod to your $PATH ====
Line 107: Line 103:
 Add C:\bin to path: Add C:\bin to path:
  
-  $x = $env:PATH +  $env:PATH += ";C:\bin"
-  $env:PATH = "C:\bin;$x"+
   setx PATH $env:PATH   setx PATH $env:PATH
  
Line 120: Line 115:
   cd $env:GOPATH\src\github.com\juju\juju   cd $env:GOPATH\src\github.com\juju\juju
   go test ./...   go test ./...
 +
 +===== Accessing the machine from Linux =====
 +
 +Some of you might want to edit the go source from Linux using your favorite editors. To do that we can set up a share.
 +
 +  sudo mount -t cifs -o username=Administrator,password=<password>,uid=$UID,gid=$GID //<hostname>/C$ <mountpoint>
 +
 +Now all of your C drive will be available at <mountpoint>.
 +
 +As a bonus, you can use https://github.com/masterzen/winrm to winrm directly into the machine and run the test suite from the comfort of your shell. Follow the instructions provided in the github repository, but set the maximum memory allowed at however much the machine has instead of 1024. The test suite tends to eat quite a lot of memory. This does not necessarily depend on this particular winrm package, but it just simply works and will probably get integrated in juju as well soon.
      
 ===== Bonus: ===== ===== Bonus: =====
Line 128: Line 133:
   (new-object System.Net.WebClient).DownloadFile("https://download.mozilla.org/?product=firefox-35.0.1-SSL&os=win&lang=en-US", "$HOME\firefox_installer.exe")   (new-object System.Net.WebClient).DownloadFile("https://download.mozilla.org/?product=firefox-35.0.1-SSL&os=win&lang=en-US", "$HOME\firefox_installer.exe")
   cmd.exe /C call $HOME\firefox_installer.exe /SILENT   cmd.exe /C call $HOME\firefox_installer.exe /SILENT
 +  
 +Or the package management way:
 +
 +  choco install -y firefox
  
 And to launch it: And to launch it:
juju-testing.1426766540.txt.gz · Last modified: 2015/03/19 14:02 by gsamfira