Project

Profile

Help

Task #903

Rework the Vagrantfile to use a custom Pulp vagrant box

Added by rbarlow over 5 years ago. Updated over 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Right now, our Vagrantfile uses the humaton/fedora-21-cloud box from Hashicorp, which is a minimal Fedora 21 install. This was nice for proof-of-concept and for getting us started with Vagrant, but we could much more quickly start up Vagrant boxes if we had a customized Pulp box available for users. Here are some things we should make sure it has for deployment speed:

  • MongoDB should already be installed and initialized (to eliminate the long first-startup time that mongod spends making large files)
  • MongoDB should be configured not to use a journal. Since Vagrant is for developer setups, I think the speed boost and space saving is worth the risk to data
  • Pulp's dependencies should be installed
  • Basic development stuff should be configured

These are all things that the existing vagrant-setup.sh script does, so we could probably just use that script to make the required image. We'll need to host this image somewhere. We could put it in Hashicorp (the most common repository of Vagrant boxes), or perhaps we could find somewhere "safer".

We should also document how this box was made, so that it is easy for anyone to reproduce their own box. We should document how users can do this. If users name a box they make the same way we name ours, Vagrant will avoid downloading the box and will just use the one the user made locally. This is nice for security conscious users such as myself.

If we do all of this right, the "vagrant up" command will run very quickly. All it will need to do is run pulp-dev.py -I on each repo, restart/start services, and things should work.

Deliverables:

  • A hosted Pulp box for developers to use hosted somewhere publicly accessible, that accomplishes the above bullet points
  • A script that can turn a minimal Fedora 21 image into said box (i.e., a reproducible build)
  • Change the Vagrantfile to reference the new box
  • Documentation about how to use the script, and how users can generate their own box if they wish to avoid the hosted one

History

#1 Updated by rbarlow over 5 years ago

  • Description updated (diff)

#2 Updated by Anonymous over 5 years ago

Just FYI: You can use packer to build vagrant boxes.

Example project: https://github.com/bechtoldt/vagrant-devenv

#3 Updated by rbarlow over 5 years ago

On 04/21/2015 02:15 PM, wrote:

Just FYI: You can use packer to build vagrant boxes.

Example project: https://github.com/bechtoldt/vagrant-devenv

That's great, thanks for the tip!

#4 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

#5 Updated by bmbouter over 1 year ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

#6 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF