From bacb362d3443f08a671bbd23e1044c12075386b2 Mon Sep 17 00:00:00 2001 From: Corey Innis Date: Wed, 22 Apr 2015 16:55:26 -0700 Subject: [PATCH] Set $TMPDIR to /mnt/tmp to maximize use of instance store on AWS. Seems faster in tests of n=1 trial. Signed-off-by: caleb miles --- bosh-stemcell/Vagrantfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bosh-stemcell/Vagrantfile b/bosh-stemcell/Vagrantfile index a3bf88afc..7a0a598ec 100644 --- a/bosh-stemcell/Vagrantfile +++ b/bosh-stemcell/Vagrantfile @@ -79,8 +79,12 @@ EOS config.vm.provision :shell do |shell| shell.inline = <<-BASH + mkdir -p /mnt/tmp + chown -R ubuntu:ubuntu /mnt/tmp + echo >> /home/ubuntu/.bashrc + echo 'export TMPDIR=/mnt/tmp' >> /home/ubuntu/.bashrc mkdir -p /mnt/stemcells - chown -R ubuntu /mnt/stemcells + chown -R ubuntu:ubuntu /mnt/stemcells mkdir -p /bosh/tmp ( cd /bosh -- GitLab