This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm --version | |
rvm install 2.0.0 | |
rvm use 2.0.0 | |
rvm --default use 2.0.0 | |
rvm docs generate-ri | |
rvm default | |
ruby --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm --version | |
rvm install 2.2.0 | |
rvm use 2.2.0 | |
rvm --default use 2.2.0 | |
rvm docs generate-ri | |
rvm default | |
ruby --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====== | |
Videos | |
====== | |
DevOps | |
What is DevOps? by Rackspace - Really great introduction to DevOps | |
https://www.youtube.com/watch?v=_I94-tJlovg | |
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install RVM | |
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
\curl -sSL https://get.rvm.io | bash -s stable | |
# set up project specific rubies and gems option | |
echo "export rvm_project_rvmrc=1" > $HOME/.rvmrc | |
echo "export rvm_install_on_use_flag=1" >> $HOME/.rvmrc | |
echo "export rvm_gemset_create_on_use_flag=1" >> $HOME/.rvmrc | |
# read in RVM config to running environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run as root | |
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | |
rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key | |
yum -y remove java* | |
yum -y install java-1.7.0-openjdk | |
update-alternatives --auto java | |
# RVM dependencies | |
yum -y install epel-release wget | |
yum -y install gnupg2 patch libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel readline-devel zlib-devel libffi-devel openssl-devel automake libtool bison sqlite-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Jenkins NVM plugin | |
mkdir -p /app/jenkins/plugins | |
chown jenkins:jenkins /app/jenkins/plugins | |
chmod 775 /app/jenkins/plugins | |
curl -o /app/jenkins/plugins/jenkins-nvm.hpi -ssL https://github.com/gextech/jenkins-nvm-plugin/blob/master/dist/jenkins-nvm.hpi?raw=true | |
chown jenkins:jenkins /app/jenkins/plugins/jenkins-nvm.hpi | |
chmod 0644 /app/jenkins/plugins/jenkins-nvm.hpi | |
#!/bin/bash | |
. ~/.nvm/nvm.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for a given user | |
curl -ssL https://raw.githubusercontent.com/creationix/nvm/v0.25.3/install.sh | bash | |
. ~/.nvm/nvm.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Sup</title> | |
</head> | |
<body> | |
<h1>Hello, world!</h1> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "base: updating system packages" | |
yum -y update | |
echo "base: cleaning YUM metadata" | |
yum clean all | |
yum clean metadata | |
echo "base: registering hostname with DHCP server" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "apache: Installing Apache" | |
yum -y install httpd | |
echo "apache: Creating Hello World index.html" | |
cat > /var/www/html/index.html <<EOF | |
<html> | |
<head> | |
<title>Sup</title> |
OlderNewer