create an empty project and add a Gemfile
cd ~/Desktop
mkdir project-name
cd project-name
touch GemfileFlexvolume enables users to mount vendor volumes into kubernetes. It expects vendor drivers are installed in the volume plugin path on every kubelet node.
It allows for vendors to develop their own drivers to mount volumes on nodes.
Note: Flexvolume is an alpha feature and is most likely to change in future
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
| import org.csanchez.jenkins.plugins.kubernetes.* | |
| import jenkins.model.* | |
| def j = Jenkins.getInstance() | |
| def k = new KubernetesCloud( | |
| 'jenkins-test', | |
| null, | |
| 'https://130.211.146.130', | |
| 'default', |
I've been playing with jq, and I've been having a hard time finding examples of how it works with output from a service like AWS (which I use a lot).
Here is one I use a lot with vagrant-ec2.
When we're launching and killing a lot of instances, the AWS API is the only way to track down which instances are live, ready, dead, etc.
To find instances that are tagged with e.g. {"Key" = "Name", "Value" = "Web-00'} in the middle of a vagrant dev cycle, or a prod launch/replace cycle, you can do something like this:
#Open vSwitch Lab
Get started with Open vSwitch, flows and OpenFlow controllers.
##Pre-reqs
Linux system with OVS installed.
##Setup
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| #!/bin/bash | |
| USAGE="Attach to Docker Container | |
| -------------------------- | |
| Attach to Docker Container even if the container does not run | |
| ssh daemon. This is accomplished by using linux containers | |
| directly via 'nsenter' (see http://bit.ly/docker_nsenter). | |
| To install 'nsenter', just execute: | |
| $ docker run -v /usr/local/bin:/target jpetazzo/nsenter |