diff --git a/.gitignore b/.gitignore index 69fa616b8..fa2938af5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.swp test/test test/.vagrant +test/package test/nytprof.out test/nytprof/* doc/output/* diff --git a/test/Vagrantfile b/test/Vagrantfile index 9f3bf12c8..d63080f09 100644 --- a/test/Vagrantfile +++ b/test/Vagrantfile @@ -4,7 +4,7 @@ Vagrant.configure(2) do |config| vb.cpus = 8 end - config.vm.box = "boxcutter/ubuntu1404-docker" + config.vm.box = "boxcutter/ubuntu1604" config.vm.provider :virtualbox do |vb| vb.name = "backrest-test" @@ -12,11 +12,21 @@ Vagrant.configure(2) do |config| # Provision the VM config.vm.provision "shell", inline: <<-SHELL - # Install Perl modules - sudo apt-get update - apt-get install -y libdbi-perl libdbd-pg-perl libxml-checker-perl ghostscript libperl-critic-perl vim + # Install Docker + apt-get update + apt-get install -y apt-transport-https ca-certificates + apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list + apt-get update + apt-get install -y linux-image-extra-$(uname -r) + apt-get install -y docker-engine + service docker start + sudo usermod -aG docker vagrant - # Install texlive + # Install Perl modules + apt-get install -y libdbd-pg-perl libxml-checker-perl ghostscript libperl-critic-perl vim + + # Install Texlive mkdir /root/texlive wget -q -O - http://mirror.hmc.edu/ctan/systems/texlive/tlnet/install-tl-unx.tar.gz \ | tar zxv -C /root//texlive --strip-components=1 @@ -30,8 +40,8 @@ Vagrant.configure(2) do |config| /usr/local/texlive/2015/bin/x86_64-linux/tlmgr install caption xcolor listings parskip helvetic ltablex titlesec \ epstopdf courier sectsty pgf ms - # Build vm images - /backrest/test/test.pl --vm-build + # Build VM images + sudo -u vagrant /backrest/test/test.pl --vm-build SHELL # Don't share the default vagrant folder