From c6248e8962f84c701e01402867c6fb52477f5add Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 10 Apr 2013 03:13:11 -0300 Subject: [PATCH] Remove apt cache from example Vagrantfile --- example/Vagrantfile | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/example/Vagrantfile b/example/Vagrantfile index bf8a8c1..66da379 100644 --- a/example/Vagrantfile +++ b/example/Vagrantfile @@ -1,16 +1,6 @@ # -*- mode: ruby -*- # vi: set ft=ruby : -def local_cache(box_name) - cache_dir = File.join(File.expand_path(Vagrant::Environment::DEFAULT_HOME), - 'cache', - 'apt', - box_name) - partial_dir = File.join(cache_dir, 'partial') - FileUtils.mkdir_p(partial_dir) unless File.exists? partial_dir - cache_dir -end - # Not really needed, but useful while developing so that vagrant picks it up Vagrant.require_plugin 'vagrant-lxc' @@ -23,8 +13,6 @@ Vagrant.configure("2") do |config| config.vm.synced_folder "/tmp", "/vagrant_data" - cache_dir = local_cache(config.vm.box) - config.vm.synced_folder cache_dir, "/var/cache/apt/archives" config.vm.provider :lxc do |lxc| lxc.customize 'cgroup.memory.limit_in_bytes', '400M'