Setting up Drupal environment using Vagrant in CentOS 7.
Sandbox -- https://www.drupal.org/sandbox/ssdas/2560269
Box available here -- https://atlas.hashicorp.com/soumyadas/boxes/Drupal-CentOS-7.1.x-64
Set up instructions --
Step 1 : Download and Install virtualbox, get the latest version.
Step 2 : Download and Install Vagrant
Step 3 : Download and install Git Bash
Step 4 : Open gitbash terminal and type the below commands --
- $ git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ssdas/2560269.git vagrant_shell_provisioned
- $ cd vagrant_shell_provisioned
- $ vagrant up --provider virtualbox
- $ Vagrant ssh
Following tools will be added during provision--
Apache
MySql
PHP
Drush Utility
Composer
Samba
Mongo DB
Elastic Search
Jenkins
N.B. The box from vagrantcloud named soumyadas/Drupal-CentOS-7.1.x-64 is already added to the Vagrantfile on this drupal module.
Drupal.org projects review :
I have reviewed below project application.
1. https://www.drupal.org/node/2176689#comment-10418353
2. https://www.drupal.org/node/2220913#comment-10418325
Comments
Comment #2
pankajchaudhari CreditAttribution: pankajchaudhari as a volunteer commentedVagrant Setup process information will be better to read and understand if given in Step wise format.
Comment #3
PA robot CreditAttribution: PA robot commentedGit clone failed for http://git.drupal.org/sandbox/ssdas/2551571.git while invoking http://pareview.sh/pareview/httpgitdrupalorgsandboxssdas2551571git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
pankajchaudhari CreditAttribution: pankajchaudhari as a volunteer commentedI have tried clone repo...it gave.
$ git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ssdas/2551571.git
Cloning into '2551571'...
fatal: repository 'http://git.drupal.org/sandbox/ssdas/2551571.git/' not found
Comment #5
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #6
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commented@pankajchaudhari I just removed the old git repo and added the new repo. It should work now, but need testing.
Comment #7
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #8
PA robot CreditAttribution: PA robot commentedFixed the git clone URL in the issue summary for non-maintainer users.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #10
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commented@pankajchaudhari I have notted down your comment about the formatting, thanks!!!
Comment #11
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #12
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #13
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #14
pankajchaudhari CreditAttribution: pankajchaudhari as a volunteer commentedVagrant Box Setup Successfully with
Services and Packages installed and running.
@SoumyaDas: Thanks for adding me as contributor.
Comment #15
deepakjoshi CreditAttribution: deepakjoshi as a volunteer commentedGreat work !!!
Its very useful contribution and all is working as per requirement , very easy to setup compare to VDD and I would be suggest to add MemCache and other debugging tools.
Comment #16
dhaval_panara CreditAttribution: dhaval_panara as a volunteer commentedIt's working fine for me.
@deepakjoshi You are correct it is very easy to setup as compare to VDD and We can also provision our own setup through vagrantfile. It will very useful if we add Drupal build script along with the setup.
Comment #17
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #18
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #19
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedThanks @pankajchaudhari, @deepakjoshi and @dhaval_panara for reviewing and adding valuable comments/suggestions. Yes I'll add ready to use build script also for Drupal 7 and Drupal 8 very soon. Drupal 7 build script is in progress.
Comment #20
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #21
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #22
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #23
rakesh.gectcrChange the name to [D7] Vagrant Shell Provisioned
Comment #24
klausi@rakesh.gectcr: Anyone can change the issue title, this is surely not an application blocker. Please do a manual review of the code.
Comment #25
kporras07 CreditAttribution: kporras07 commentedDoing a manual code review; I got a big question:
II line 51: you're syncing a Windows folder. Why is it hardcoded? I mean, I use Linux, other devs use mac; but this is only taking in account Windows users. It's just a question; I really want to know.
Nice work, thanks for your contribution.
Comment #26
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commented@kporras07 Good catch, that was intended for creating a new Drupal instance in single command. I already Created that build script and will update it later. Right now I'm disabling this line. I will keep in mind that platform independent thing. Thanks!
Comment #27
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #28
SoumyaDas CreditAttribution: SoumyaDas as a volunteer commentedComment #29
gisleThis isn't a Drupal module or theme, but a setup script for Vagrant Box. I am not even sure that this sort of thing belongs in the Drupal.org repo. The CLI tool drush (a fairly important tool for the Drupal community) is hosted on Github: https://github.com/drush-ops/drush
But I leave it to the git admin who does the final review to make that call.
You should not push to the repo with
.gitignore
included (make it ignore itself).The bash script is mostly sudo commands to install stuff it pulls from the net. I am a Drupal developer, not a CentOS system manager, so I may have overlooked something, but didn't see any red flags.
There isn't a single line of code that interacts with Drupal in the repo (it consists of a bash script + a configuration file) - so I am adding the Single project promote-tag - as there is 0 lines of PHP code and 0 Drupal functions in the application - but I don't see what more there is to review, so I am setting its status to RTBC.
Before this is promoted, it should also be checked by a git admin that is also a CentOS system manager and knows about security in CentOS on the CLI-level.
PS: I deliberately haven't added the [D7] to the issue summary, as the virtual machine it creates should be capable of running any version of Drupal.
Comment #30
yogeshmpawarComment #31
gisle@Yogesh Pawar,
this project is not Drupal 7. his isn't even a Drupal module or theme, but a setup script for Vagrant Box.
It makes no sense to have a Drupal version indicator in the title.
Comment #32
apadernoI agree with gisle.
The project application is done to see if the user understood how to write a module or theme, but this application is done with a Bash script, so we cannot say the OP knows how to write a module or a theme. There is no way for saying the OP shows to know how to use the Drupal API, what the Drupal coding standards are, or how to implement a hook.
Comment #33
klausiWe do a single project promotion in this case.
Comment #34
apadernoI have promoted the project to full project (https://www.drupal.org/project/vagrant_for_drupal).
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thank you, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks go the dedicated reviewer(s) as well.
Comment #36
apaderno