Created
September 20, 2014 10:53
-
-
Save jareware/2269e81f92ece565c5bc to your computer and use it in GitHub Desktop.
If you do IE-testing in your project, drop this Vagrantfile in there somewhere, to automate downloading & setting up your test box.
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# This is kinda ghetto, but the simplest way to print a message to the user | |
puts "\nNOTE: After the box boots, your app will be available at e.g. http://192.168.50.1:8080" | |
puts " If Vagrant won't detect the machine state, just Ctrl + C after the GUI is up\n\n" | |
# http://blog.syntaxc4.net/post/2014/09/03/windows-boxes-for-vagrant-courtesy-of-modern-ie.aspx | |
config.vm.box = "vagrant-win7-ie11" | |
config.vm.box_url = "http://aka.ms/vagrant-win7-ie11" | |
# Makes the host machine available as "192.168.50.1" on the guest | |
config.vm.network "private_network", ip: "192.168.50.2" | |
# http://stackoverflow.com/questions/23574387/why-is-vagrant-trying-to-ssh-to-windows-guest | |
# https://www.vagrantup.com/blog/feature-preview-vagrant-1-6-windows.html | |
config.vm.communicator = "winrm" | |
# We don't want the default headless mode | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment