Nightly vagrant box that has all custom services prepackaged

51 views
Skip to first unread message

Amit Laspal

unread,
Aug 11, 2016, 2:24:44 AM8/11/16
to Vagrant
I am very new to vagrant. Just started working on it. 
I wanted to know what does this mean - "nightly vagrant box that has all custom services prepackaged".
I have some custom java service which I need to deploy in my box. 
 Basically is this  vagrant provisioning ? Does it mean creating a setup.sh file containing all custom service and used in vagrant file?

Thanks,

Alvaro Miranda Aguilera

unread,
Aug 11, 2016, 2:28:41 AM8/11/16
to vagra...@googlegroups.com
Hello,

where you are reading that?

Thanks
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/17e55175-9339-4c63-b1d2-5072be0a4db0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Mohit

unread,
Aug 11, 2016, 2:58:12 AM8/11/16
to Vagrant
Hi,
Basically I was asked to do - getting basically a nightly vagrant box that has all "custom services" prepackaged. So this would involve using "custom script"  to build and deploy "custom service" to a local dc and then doing a vagrant save.

Not sure what does this mean. 


On Thursday, August 11, 2016 at 11:58:41 AM UTC+5:30, Alvaro Miranda Aguilera wrote:
Hello,

where you are reading that?

Thanks
Alvaro.
On Thu, Aug 11, 2016 at 8:24 AM, Amit Laspal <amit....@gmail.com> wrote:
I am very new to vagrant. Just started working on it. 
I wanted to know what does this mean - "nightly vagrant box that has all custom services prepackaged".
I have some custom java service which I need to deploy in my box. 
 Basically is this  vagrant provisioning ? Does it mean creating a setup.sh file containing all custom service and used in vagrant file?

Thanks,

--
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.



--

Alvaro Miranda Aguilera

unread,
Aug 11, 2016, 3:12:18 AM8/11/16
to vagra...@googlegroups.com
I think the best is get the person sharing this task with you to write down the goals and the success criteria.

Otherwise you will end doing a lot of loops and he may never be happy.

This is what I understand.

You are being ask to create a process that the result will be a Vagrant box.

Because they told you to use "vagrant save" that tells me the they *may* be referring to vagrant package to create a new vagrant box.

So, assuming what I understand is correct the workflow they are telling you is.

- Create a Vagrant project that have all the dependencies, etc your company use
- Run that every night
- create a vagrant box every night
- put that box into the company web server


when you are there, I will suggest move the task into packer that is a more fit tool to create vagrant boxes, but to get you started, start doing what they are suggesting.

but get them to show you more, and guide you.

If you want to learn vagrant, happy to help you started:

- Install virtualbox
- Install latest vagrant from downloads in vagrantup.com

then do:

mkdir precise64
cd precise64
vagrant init -m hashicorp/precise64
vagrant up

done, your fist vagrant is created

Then read:


And play here:

Good luck!

Feel free to came back any time you have questions :D

Alvaro.

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9308af7c-3c76-4e13-aabd-b0246ed55465%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Mohit

unread,
Aug 11, 2016, 4:58:05 AM8/11/16
to Vagrant
Sure and Thanks a lot. 



--
Message has been deleted

kik...@gmail.com

unread,
Aug 17, 2016, 2:29:35 PM8/17/16
to Mohit, Vagrant

Can you elaborate more?

 

Sent from Mail for Windows 10

 

From: Mohit
Sent: Wednesday, August 17, 2016 08:16 AM
To: Vagrant
Subject: Re: [vagrant-up] Nightly vagrant box that has all custom servicesprepackaged

 

Hi, 

 

Can I use python script to deploy vagrant project into local dc. 

How can i achieve that ?



 

--

--

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.

Message has been deleted

Alvaro Miranda Aguilera

unread,
Aug 18, 2016, 3:38:25 AM8/18/16
to vagra...@googlegroups.com, Amit Laspal
Hello,

I think we can start from the basics.

- Install vagrant version 1.8+
- Install virtualbox

Then do this:

mkdir precise64
cd precise64
vagrant init -m hashicorp/precise64
vagrant up

That will create a guest VM using a box hosted in atlas.

Whats a box? a VM template in a particular format that vagrant understand.

The box in atlas is here:

After you start this VM, you can see the guest running and the base box was added to your computer.

vagrant box list

From here, you have 2 paths, update the guest VM and when you are happy with the results, package it and create a new one
or
create a packer project and create a new VM

Let me know where more clarification is needed and happy to help.


If you don't have an atlas account, please create one here:

And then perform the following tutorial:

And we can take it from there.

Alvaro.

Mohit

unread,
Aug 22, 2016, 2:12:35 AM8/22/16
to Vagrant, amit....@gmail.com
Hi,

Thanks a lots, I was able to create VM box. 
Next step for me
a) Clone a git repo 
b) Install custom "install.sh" file"
c) Execute a particular code which basically created all logs file and other stuffs. 

So how to do git clone and execute code in my provision file. ".sh file" 

Thanks,
Amit laspal

Alvaro Miranda Aguilera

unread,
Aug 22, 2016, 3:36:45 AM8/22/16
to vagra...@googlegroups.com, Amit Laspal
Hello


I think you want to create your own repo and add code to learn, then you can add external code

Please clarify what you mean by clone repo, I assume you know how to use Git.
Please confirm.

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/a7a418b3-d57e-4455-ba9d-fa1291a534c1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Alvaro Miranda Aguilera

unread,
Aug 23, 2016, 5:57:14 AM8/23/16
to vagra...@googlegroups.com
Hello,

if your script work after this:

vagrant destroy
vagrant up
vagrant ssh
sudo su -
bash /vagrant/provision/<script>

then is ready to be included inside vagrant.




config.vm.provision "shell", path: "provision/<script>"


Thanks
Alvaro


On Tue, Aug 23, 2016 at 10:21 AM, Mohit <amit....@gmail.com> wrote:
Hi,

This is what I am trying to achieve. 

.provision/bootstrap.sh file--- 

#!/bin/bash

sudo apt-get update
sudo apt-get install -y git
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -H git.www.com >> ~/.ssh/known_hosts

cd project2 
install script.sh
cd ..
cd project1
customcommand build ---------------- customcommand is install when I install  script.sh

My structure is like :
Readme.md
Vagrantfile
.provision - folder 
./provision/bootstrap.sh 

I am really thankful for all the help you are providing me.  

Thanks, 
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--



--
Reply all
Reply to author
Forward
0 new messages