Automated builds of Vagrant boxes

18 views
Skip to first unread message

Jason Hsu

unread,
Apr 11, 2019, 7:30:02 PM4/11/19
to Vagrant
I used to use Vagrant but switched to Docker.  Now I'm interested in revisiting Vagrant for working on Ruby on Rails apps that I haven't been able to get working in a Docker environment.  One of them is the rubygems.org site (https://github.com/rubygems/rubygems.org), where I've been unable to get ElasticSearch to work properly.  (The official way is to run ElasticSearch through a Docker container.  This requires running Rails in the host OS, because I am unable to run a Docker container within a Docker container.)  Another project I need Vagrant for is HoundCI (https://github.com/houndci/hound), where browser tests fail, and everyone on the project relies on Ruby on Rails in the host OS.

I've been so spoiled in the Docker world.  One of my favorite features is the automated builds of Docker Cloud (previously known as Docker Hub).  I connect a Docker image to a GitHub or BitBucket repository, and Docker Cloud's automated build feature creates my Docker image for me.  This frees up my local machine AND bypasses the need to upload the Docker image.

Does the Vagrant world have anything like this?  When I was relying on Vagrant in the past, I used Packer to build my Vagrant boxes locally, and then I had to upload the image.  This was a long process.

Alvaro Miranda Aguilera

unread,
Apr 15, 2019, 1:14:07 PM4/15/19
to vagra...@googlegroups.com
hello this hasn't changed much.

you can use packer to build boxes.

Something new is that packer now can build from an existing vagrant box, so saves time as will be using a local base box.


There is an example too.

Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/2aea4d30-a98e-47de-bf04-da158ffa1419%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages