Re: Review Request 32161: Create a packer definition to build a base vagrant box.

2015-03-17 Thread Joshua Cohen

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32161/#review76786
---


I tried this out locally and `vagrant up` wall time went from 5m24s before this 
change to 3m16s afterwards.

Overall +1 on this, but I definitely think we need to add a README in the 
packer directory to explain what's going on, how to build/upload a new box, etc.

- Joshua Cohen


On March 17, 2015, 4:23 p.m., Bill Farner wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/32161/
 ---
 
 (Updated March 17, 2015, 4:23 p.m.)
 
 
 Review request for Aurora, Joshua Cohen and Kevin Sweeney.
 
 
 Bugs: AURORA-1203
 https://issues.apache.org/jira/browse/AURORA-1203
 
 
 Repository: aurora
 
 
 Description
 ---
 
 Mostly getting the conversation started.  This change pushes most of the 
 lower-velocity components down into a vagrant base box [1], which we would 
 fetch from vagrant cloud for the time being, or on ASF infra if/when freemium 
 ends on Atlas [2].  I managed to an example project that served as a good 
 guide [3].
 
 Getting ahead of potential requests - commenting within packer json is not 
 supported.
 
 So far i have moved base package installation out of vagrant provisioning, 
 and have seeded the gradle cache.  With a cached machine image (~900 MiB), 
 `vagrant up` took 5m24s (caveat: sample size 1).  If we seed the python 
 artifact cache as well, we should be able to shave off another minure or two.
 
 [1] http://docs.vagrantup.com/v2/boxes/base.html
 [2] https://atlas.hashicorp.com/
 [3] 
 https://bitbucket.org/ariya/packer-vagrant-linux/src/d0359d7e64e2?at=master
 
 This change will not be submitted as-is, since i still need to host the 
 machine image, but i wanted to get your thoughts on it before i proceed 
 further.
 
 
 Diffs
 -
 
   Vagrantfile 2d6c2ae598e80035840f7e517e161be266b581dd 
   examples/packer/aurora.json PRE-CREATION 
   examples/packer/http/ubuntu-14.04-amd64/preseed.cfg PRE-CREATION 
   examples/packer/scripts/aurora.sh PRE-CREATION 
   examples/packer/scripts/compact.sh PRE-CREATION 
   examples/packer/scripts/vagrant.sh PRE-CREATION 
   examples/vagrant/provision-dev-cluster.sh 
 ae500436e703140065e5c16fc0e38dbe3214e69f 
 
 Diff: https://reviews.apache.org/r/32161/diff/
 
 
 Testing
 ---
 
 
 Thanks,
 
 Bill Farner
 




Re: Review Request 32161: Create a packer definition to build a base vagrant box.

2015-03-17 Thread Aurora ReviewBot

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32161/#review76743
---

Ship it!


Master (b847bbf) is green with this patch.
  ./build-support/jenkins/build.sh

I will refresh this build result if you post a review containing @ReviewBot 
retry

- Aurora ReviewBot


On March 17, 2015, 4:23 p.m., Bill Farner wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/32161/
 ---
 
 (Updated March 17, 2015, 4:23 p.m.)
 
 
 Review request for Aurora, Joshua Cohen and Kevin Sweeney.
 
 
 Bugs: AURORA-1203
 https://issues.apache.org/jira/browse/AURORA-1203
 
 
 Repository: aurora
 
 
 Description
 ---
 
 Mostly getting the conversation started.  This change pushes most of the 
 lower-velocity components down into a vagrant base box [1], which we would 
 fetch from vagrant cloud for the time being, or on ASF infra if/when freemium 
 ends on Atlas [2].  I managed to an example project that served as a good 
 guide [3].
 
 Getting ahead of potential requests - commenting within packer json is not 
 supported.
 
 So far i have moved base package installation out of vagrant provisioning, 
 and have seeded the gradle cache.  With a cached machine image (~900 MiB), 
 `vagrant up` took 5m24s (caveat: sample size 1).  If we seed the python 
 artifact cache as well, we should be able to shave off another minure or two.
 
 [1] http://docs.vagrantup.com/v2/boxes/base.html
 [2] https://atlas.hashicorp.com/
 [3] 
 https://bitbucket.org/ariya/packer-vagrant-linux/src/d0359d7e64e2?at=master
 
 This change will not be submitted as-is, since i still need to host the 
 machine image, but i wanted to get your thoughts on it before i proceed 
 further.
 
 
 Diffs
 -
 
   Vagrantfile 2d6c2ae598e80035840f7e517e161be266b581dd 
   examples/packer/aurora.json PRE-CREATION 
   examples/packer/http/ubuntu-14.04-amd64/preseed.cfg PRE-CREATION 
   examples/packer/scripts/aurora.sh PRE-CREATION 
   examples/packer/scripts/compact.sh PRE-CREATION 
   examples/packer/scripts/vagrant.sh PRE-CREATION 
   examples/vagrant/provision-dev-cluster.sh 
 ae500436e703140065e5c16fc0e38dbe3214e69f 
 
 Diff: https://reviews.apache.org/r/32161/diff/
 
 
 Testing
 ---
 
 
 Thanks,
 
 Bill Farner