This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
juju-testing [2015/02/10 16:45] anashwan |
juju-testing [2015/07/09 15:54] (current) bteleaga |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Running Juju-Core tests on Windows ====== | ====== Running Juju-Core tests on Windows ====== | ||
| - | ===== Installing a base windows | + | ===== Installing a base Windows |
| - | First we need to install a windows | + | First we need to install a Windows |
| You can install this version of Windows on top of KVM using any ubuntu version >= Ubuntu 14.04. Installation steps are simple, just follow the wizard. | You can install this version of Windows on top of KVM using any ubuntu version >= Ubuntu 14.04. Installation steps are simple, just follow the wizard. | ||
| Line 9: | Line 9: | ||
| ===== Post install steps ===== | ===== Post install steps ===== | ||
| - | Windows Hyper-V | + | Windows Hyper-V |
| {{: | {{: | ||
| Line 26: | Line 26: | ||
| - select 2 and hit enter | - select 2 and hit enter | ||
| - | This will enable remote desktop. Now lets disable the firewall (you don't really need it for testing). In the black cmd terminal type: | + | This will enable remote desktop. Now let' |
| netsh advfirewall set allprofiles state off | netsh advfirewall set allprofiles state off | ||
| - | You should now be able to connect to your windows | + | You should now be able to connect to your Windows |
| ==== Installing Chocolatey ==== | ==== Installing Chocolatey ==== | ||
| - | Chocolatey is awesome. Why its not default in windows is beyond me. In essence its a windows | + | Chocolatey is awesome. Why it' |
| < | < | ||
| Line 53: | Line 53: | ||
| ==== Installing scm and golang ==== | ==== Installing scm and golang ==== | ||
| - | Its time to install the various scm binaries needed by go, and also version 1.2.1 of Go to mirror the version used in ubuntu | + | Its time to install the various scm binaries needed by go, and also version 1.2.1 of Go to mirror the version used in Ubuntu |
| [[juju-windows|Installing SCM systems and golang]] | [[juju-windows|Installing SCM systems and golang]] | ||
| Line 60: | Line 60: | ||
| ==== Getting a SSL enabled version of mongod.exe ==== | ==== Getting a SSL enabled version of mongod.exe ==== | ||
| - | Apparently, the windows version of mongod comes with SSL disabled on windows. You basically have 2 options to get SSL support on windows: | + | Apparently, the windows version of mongod comes with SSL disabled on windows. You basically have two options to get SSL support on windows: |
| - Buy the payed version | - Buy the payed version | ||
| - compile your own | - compile your own | ||
| - | You can get a {{: | + | You can get a {{:mongo-static.zip|precompiled version of mongod.exe here}}. |
| - | To download it via powershell | + | To download it via PowerShell |
| - | Start-BitsTransfer http:// | + | Start-BitsTransfer http:// |
| | | ||
| If you have not already done so, install 7zip: | If you have not already done so, install 7zip: | ||
| - | choco install 7zip | + | choco install |
| | | ||
| - | You will also need the Visual | + | You will also need the Visual |
| - | choco install vcredist2013 | + | choco install |
| - | choco install vcredist2008 | + | choco install |
| - | + | ||
| - | Get a copy of OpenSSL for Windows: | + | |
| - | + | ||
| - | StartBitsTransfer http:// | + | |
| - | .\Win64OpenSSL-1_0_1L.exe | + | |
| | | ||
| - | Now lets extract mongo: | + | Now let' |
| - | | + | |
| | | ||
| 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 | + | |
| - | + | | |
| - | You should have the mongo version. | + | |
| + | 2015-04-03T11: | ||
| ==== Adding mongod to your $PATH ==== | ==== Adding mongod to your $PATH ==== | ||
| Line 101: | Line 97: | ||
| mkdir C:\bin | mkdir C:\bin | ||
| | | ||
| - | Copy mongod.exe to it: | + | Copy mongod.exe to it:-35 |
| cp mongod.exe C:\bin\ | cp mongod.exe C:\bin\ | ||
| Line 107: | Line 103: | ||
| Add C:\bin to path: | Add C:\bin to path: | ||
| - | | + | $env: |
| - | | + | |
| setx PATH $env:PATH | setx PATH $env:PATH | ||
| Line 120: | Line 115: | ||
| cd $env: | cd $env: | ||
| 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, | ||
| + | |||
| + | Now all of your C drive will be available at < | ||
| + | |||
| + | As a bonus, you can use https:// | ||
| + | | ||
| + | ===== Bonus: ===== | ||
| + | |||
| + | Thanks for tagging along, I really appreciate it. | ||
| + | As a sign of my appreciation, | ||
| + | |||
| + | (new-object System.Net.WebClient).DownloadFile(" | ||
| + | cmd.exe /C call $HOME\firefox_installer.exe /SILENT | ||
| + | | ||
| + | Or the package management way: | ||
| + | |||
| + | choco install -y firefox | ||
| + | |||
| + | And to launch it: | ||
| + | |||
| + | & ' | ||
| + | |||
| + | You may now enjoy the simple pleasures in life once more, like giving a quick Google or downloading an MSI installer right from the comfort of your own blue-on-black free version of Windows Server | ||