Installing vagrant-vsphere plugin - plugins

so I recently installed the vagrant-aws plugin with vagrant plugin install vagrant-aws, after quite the adventure with ruby versions and dependencies. Anyway, for our deployment pipeline I need to find a way to spin up vSphere machines with vagrant, and there is a vagrant-vsphere plugin on github, but I have no idea what to do with it. I'm really new to ruby/programming/devOps in general, and it doesn't look like vagrant will allow you to install plugins from local files.
I saw in the vagrant docs you can require a plugin in your vagrant file with require 'my_plugin', and I tried the path to the .gemspec file where my_plugin is, but can't seem to figure out how to work this. If anyone has help or pointers to places on the internet I can look, I would very much appreciate it :) I'll be scouring the web for a long time to find a solution.

You should be able to install it after bulding it from source:
mkdir ~/tmpbuild
cd ~/tmpbuild
git clone git://github.com/nsidc/vagrant-vsphere.git
cd vagrant-vsphere
gem build vSphere.gemspec
vagrant plugin install vagrant-vsphere-0.0.1

Related

What code do I need to enter to make expo project function?

I am not a developer, but I had an app built a couple months ago. The developer we had won't help us at all anymore (not sure why).
Please excuse me if I don't use proper terms.
So the project was done on Expo. I no longer have access to the original expo project, but I have all the code he wrote in a Github repository.
Is is possible to take the code from Github and paste it into Expo XDE and possibly reproduce the app on Expo? (Or Does that sound possible?)
Please let me know.
Yes, you could do this. It is important, that you copy all project files from the GitHub repository into your new Expo project. Don't forget to download all necessary libraries into your new Expo project, e.g. via npm install.
I'm a complete react native noob, I've been doing this, and I love it:
Develop prototype on https://snack.expo.io
Here I can develop and test on the browser, test on my phones, and on emulators. It's great.
When I'm ready to build, I download the code package from the Snack IDE
This downloads a zip file with everything except Expo and imported libraries.
I unzip and go into the folder with my terminal and install the libraries.
Inside the folder, I run these commands to install Expo and the regular libraries:
$ npm install expo # install expo
$ npm install # install a bunch of required libraries
# Then I run these two lines until my project builds
$ npm run web # try to run - it will tell me which libraries to install, one by one
$ npm install <library> # install each library
Eventually I'll move to using command-line only, but this is both a no-brainer for a noob like me and it's like training wheels for me to learn npm and expo.

collectd-how to install write_riemann plugin

I'm new to collectd and Riemann. Im essentially trying to direct collectd logs to a riemann server instance. I understand that I need write_riemann plugin installed. I tried compiling the source files for write_riemann available online, but it includes a file called "riemann.pb-c.h", which is no where to be found. Please help!
Download the binary. After running the build script, while running the configure script include "--enable-write_riemann", this should install it. I had a lot of dependencies missing on CentOS, which threw a lot of errors. Once they were installed, write_riemann plugin was compiled and installed. Another issue you might face while installing the dependency is not able to find the right packages for protobuf-c.I was using yum package installer. Go to sudo vi /etc/yum.repos.d/epel.repo and change enabled from 0 to 1. After this, the protobuf-c processor was recognised while running the configure script. This solved my issue. Hope it does yours too!

Install a package to a docker container (managed by dokku)

I have a hard time understanding where is the right place to place a code that will install the needed packages for the given docker container managed by dokku.
We have a scala application and, unfortunately, we need to have one shell call that is dependent on an environment. I would like to install the given package for the given container using "apt-get install". Right now I am using a custom plugin with a file named "post-release-build". However, I don't have the permission to install anything in that phase.
Basically, my script that should be invoked looks like this (based on a dockerfile that is available online):
apt-get update
apt-get install -y build-essential xorg libssl-dev libxrender-dev wget gdebi
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
gdebi --n wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
echo "-----> wkhtmltox installed!"
Is there a way how to make it work? I would also prefer to have such a file somewhere in the application so I don't need to setup environment before pushing the app (in the future).
EDIT:
I have found a plugin that should be capable of installing packages using apt-get (https://github.com/F4-Group/dokku-apt) however, I am a little bit unlucky because it downloads a package that is not working properly.
Since just downloading with apt-get will download a package that fails, I investigated deeper into dokku and came out with a new plugin that should install the package for you.
I have created a script, documented how to use it and licenced it over MIT license so feel free to use it. Hopefully it will save you the time I had to spend realizing what is going on.
URL: https://github.com/mbriskar/dokku-wkhtmltopdf

logstash plugin for stomp

I am using logstash-1.4.2, and follow the tutorial here:
http://logstash.net/docs/1.4.2/contrib-plugins
to install contrib plugins for my stomp.
but when I follow the tutorial in "Automated Installation" part, run:
plugin.sh install contrib
I will have the following:
C:\logstash\logstash-1.4.2\logstash-1.4.2\bin>plugin.sh install contrib
Welcome to Git (version 1.9.0-preview20140217)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
which does not look that my plugins have been added.
Anyone has a solution for this, Thanks.
The current logstash contrib automated installation only works for Linux/Mac OS, which is why this is failing for you. There are a couple of approaches you can take:
There has been some code checked in for doing this on Windows, just
not yet merged into the production release. Check here:
https://github.com/elasticsearch/logstash/pull/1356
You can just download and extract the files into your logstash
directory ( in your case the one above bin). Discussion of that
approach here:
https://groups.google.com/forum/#!topic/logstash-users/KbLwrgC4qSk

Why doesn't the Magnum repository show the packages in CentOS 6?

I've been banging my head against the wall today. I'm trying to install the Net::Amazon::S3 library but CPAN is failing to build it.
I found the Magnum repository at http://rpm.mag-sol.com/Centos/6/x86_64/ which includes the library in a package. Unfortunately after adding the repository to Yum, I can't install any of the packages.
If I run the command yum --disablerepo="*" --enablerepo="magnum" list available I see none of the packages on the list.
How can I install the required packages through Yum?
Sounds strange. I've just run exactly the same command on my Centos 6.4 x86_64 box and I got a list of over 300 available packages.
Have you tried running "yum clean all" before the "yum list available" command?
I'd really like to get this working for you. Feel free to email me at the address given at the bottom of http://rpm.mag-sol.com/.
Dave...
[Magnum Solutions RPM Repository Admin]