Last active
May 23, 2018 07:00
-
-
Save pietrom/89957bbe120dcc7d9342a35af80895a2 to your computer and use it in GitHub Desktop.
Vagrantfile providing SqlServer on localhost:1433
This file contains hidden or 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
Vagrant.configure("2") do |config| | |
config.vm.define "linux-sqlserver"do |linux| | |
linux.vm.box = "ubuntu/xenial64" | |
linux.vm.network "forwarded_port", guest: 1433, host: 1433 | |
linux.vm.provider "virtualbox" do |vb| | |
vb.name = "my-sqlserver" | |
vb.memory = 2048 | |
vb.cpus = 2 | |
end | |
linux.vm.provision "docker" do |d| | |
d.run "nsa-sql", | |
image: "microsoft/mssql-server-linux", | |
args: "-p 1433:1433 -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=ThePassword'", | |
daemonize: true, | |
restart: "always" | |
end | |
linux.vm.provision "shell", path: "linux-sqlserver-host/init.sh" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment