au.net.causal.maven.plugins.boxdb.db.sqlserver.Vagrantfile-scripts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxdb-maven-plugin Show documentation
Show all versions of boxdb-maven-plugin Show documentation
Maven plugin to start databases using Docker and VMs
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "msabramo/mssqlserver2014express"
config.vm.define ENV['CONTAINERNAME'] do |t|
end
config.vm.provider "virtualbox" do |vb|
vb.name = ENV['CONTAINERNAME']
end
config.vm.provision "runscript", type: "shell", env: {"SCRIPTFILE" => ENV['SCRIPTFILE'], "DBUSER" => ENV['DBUSER'], "DBPASSWORD" => ENV['DBPASSWORD'], "DBNAME" => ENV['DBNAME']}, inline: <<-SHELL
$app = "c:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\SQLCMD.EXE"
& $app -H localhost -b -e -U $env:DBUSER -P $env:DBPASSWORD -d $env:DBNAME -i c:\\vagrant\\$env:SCRIPTFILE
exit $LASTEXITCODE
SHELL
end