Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

How to install additional packages other than apt-get? #221

Closed
caschbre opened this issue Sep 1, 2015 · 4 comments
Closed

How to install additional packages other than apt-get? #221

caschbre opened this issue Sep 1, 2015 · 4 comments

Comments

@caschbre
Copy link

caschbre commented Sep 1, 2015

I had a couple of questions on how to install additional packages that are not a simple apt-get. Three different examples are below.

I'd like to install nodejs from a different repository.

$ sudo apt-get install python-software-properties
$ sudo apt-add-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs

Or install the bundler gem.

gem install bundler

Or install Grunt using npm.

sudo npm install -g grunt-cli
@frob
Copy link
Contributor

frob commented Sep 1, 2015

I am somewhat curios as to why any of those things are necessary. However, I use this as a base vm, not an end-all infinitely configurable development platform for what ever you need.

My suggestion would be to fork it and add anisble roles to the playbook that do those things.

@caschbre
Copy link
Author

caschbre commented Sep 1, 2015

My end goal is to have a project specific dev environment. I'm learning vagrant + ansible and trying to figure out how to go about certain things like this. One project I have has a grunt build task so after cloning a repo we kick off the grunt task.

I'm ok forking the repo and pulling in changes from upstream as drupal-vm gets updates... I just noticed the config.yml file had an option to include additional packages. I still need to figure out how to create roles. I haven't gotten to that part of Jeff's book yet.

@oxyc
Copy link
Collaborator

oxyc commented Sep 2, 2015

Currently this is not supported during the VM build. There's already an issue for it though #174

@geerlingguy
Copy link
Owner

Ha, @oxyc I was literally typing the exact same comment at the time you posted yours. I'm working on finishing my book right now, but once that's done, I'm back to focusing on Drupal VM a bit more, and I hope to have a solution in place for this.

One note: most devs using Drupal VM (myself included) have tools like SASS compilers and asset pipelines running locally (on the host), and the VM itself just runs the site and backend tools. However, enough people have asked for support for things like grunt, gulp, broccoli, spaghetti, gasp, linguini, and all the other thousand JS build frameworks are out there, so I think #174 is one of my highest priority improvements for a 2.x minor release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants