Skip to content

Instantly share code, notes, and snippets.

@jareware
Created September 20, 2014 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jareware/2269e81f92ece565c5bc to your computer and use it in GitHub Desktop.
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.
# -*- 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