Skip to content

Instantly share code, notes, and snippets.

View ssmythe's full-sized avatar

Steve Smythe ssmythe

  • Reno, NV, USA
  • 02:06 (UTC -07:00)
View GitHub Profile
@ssmythe
ssmythe / rails_app_task_using_unicorn_and_nginx_centos6.sh
Created February 26, 2016 04:34
Sets up a rails scaffold Task app using unicorn and nginx on CentOS6
#!/usr/bin/env bash
# How To Deploy Rails Apps Using Unicorn And Nginx on CentOS 6.5
# https://www.digitalocean.com/community/tutorials/how-to-deploy-rails-apps-using-unicorn-and-nginx-on-centos-6-5
#--------------------------------
# Preparing The Deployment Server
#--------------------------------
@ssmythe
ssmythe / Vagrantfile_nexus_centos6.rb
Created February 23, 2016 18:25
Vagrantfile to create Nexus on CentOS6
VAGRANTFILE_API_VERSION = "2"
BRIDGE = 'en3: Thunderbolt Ethernet'
CENTOS67_BOX_URL = 'http://boxes.local.tld/virtualbox/updated_centos_6.7_20160215.box'
CENTOS67_BOX_NAME = 'updated/centos-6.7'
INSTALL_BASE_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/f88142c80076df5fac9b/raw/0574b105d06728dd1383460441375cbaa536684b/install-base-centos6.sh'
INSTALL_NEXUS_OSS_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/d4377ccb4ac0ff6fc874/raw/172f205d88e1325145035f1175a56561f76fb36b/install-nexus-oss-centos6.sh'
servers = {
@ssmythe
ssmythe / Vagrantfile_p4d_centos6.rb
Created February 23, 2016 18:24
Vagrantfile to create p4d on CentOS6
VAGRANTFILE_API_VERSION = "2"
BRIDGE = 'en3: Thunderbolt Ethernet'
CENTOS67_BOX_URL = 'http://boxes.local.tld/virtualbox/updated_centos_6.7_20160215.box'
CENTOS67_BOX_NAME = 'updated/centos-6.7'
INSTALL_BASE_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/f88142c80076df5fac9b/raw/0574b105d06728dd1383460441375cbaa536684b/install-base-centos6.sh'
INSTALL_P4D_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/08803405033335a75f3e/raw/5219b4e5b221098f9147a7297a308a28fcf3c4bb/install-p4d-centos6.sh'
servers = {
@ssmythe
ssmythe / Vagrantfile_jenkins_centos6.rb
Created February 23, 2016 18:22
Vagrantfile to create Jenkins on CentOS6
VAGRANTFILE_API_VERSION = "2"
BRIDGE = 'en3: Thunderbolt Ethernet'
CENTOS67_BOX_URL = 'http://boxes.local.tld/virtualbox/updated_centos_6.7_20160215.box'
CENTOS67_BOX_NAME = 'updated/centos-6.7'
INSTALL_BASE_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/f88142c80076df5fac9b/raw/0574b105d06728dd1383460441375cbaa536684b/install-base-centos6.sh'
INSTALL_P4_CLI_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/193681fe70b5af289881/raw/8f164fb74be8520a3c8ed116ebe3228607fc56a9/install-p4-cli-centos6.sh'
INSTALL_JENKINS_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/bfed8846c1489ecedb70/raw/1b97f79e71083f7f5213497af9b26f55f88c7703/install-jenkins-centos6.sh'
INSTALL_RVM_RUBY_230_JENKINS_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/12859b230f7fd4012553/raw/11c613e69c76ad74c7274ed3bcf3a9a6aa76ee11/install-rvm-for-jenkins-centos6.sh'
@ssmythe
ssmythe / install-nexus-oss-centos6.sh
Created February 22, 2016 23:41
Install Nexus OSS for CentOS6
#!/usr/bin/env bash
NEXUS_DEPLOY_VERSION=2.12.0
NEXUS_PATCH_LEVEL=01
#
# JAVA OPENJDK
#
echo "nexus: install Java OpenJDK"
@ssmythe
ssmythe / install-jenkins-plugins.sh
Created February 22, 2016 23:26
Installs some Jenkins plugins
#!/usr/bin/env bash
echo "jenkins-plugins: Installing plugin: build-pipeline-plugin"
su -l -c "java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 install-plugin build-pipeline-plugin" jenkins
echo "jenkins-plugins: Installing plugin: delivery-pipeline-plugin"
su -l -c "java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 install-plugin delivery-pipeline-plugin" jenkins
echo "jenkins-plugins: Installing plugin: join"
su -l -c "java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 install-plugin join" jenkins
@ssmythe
ssmythe / install-rvm-for-jenkins-centos6.sh
Created February 22, 2016 23:25
Installs RVM (including prerequisites) and Ruby 2.3.0 for jenkins user on CentOS6
#!/usr/bin/env bash
#
# DEVTOOLS
#
echo "rvm: installing rvm prerequisites"
curl -sSL https://gist.githubusercontent.com/ssmythe/50564cc35d4c1f43f80a/raw/25212d56133b9d44479cbe55b0ea1a22a0a10324/install-rvm-prereqs-centos6.sh | bash
#
@ssmythe
ssmythe / install-rvm-prereqs-centos6.sh
Last active February 22, 2016 23:13
Install RVM prerequisites for CentOS6
#!/usr/bin/env bash
yum -y groupinstall development
yum -y install libyaml-devel libffi-devel readline-devel zlib-devel openssl-devel sqlite-devel
@ssmythe
ssmythe / install-jenkins-centos6.sh
Created February 22, 2016 23:08
Install Jenkins on CentOS6
#!/usr/bin/env bash
#
# JAVA OPENJDK
#
echo "jenkins: Install Java"
# https://issues.jenkins-ci.org/browse/JENKINS-31102
yum -y install java-1.8.0-openjdk
@ssmythe
ssmythe / install-p4-cli-centos6.sh
Last active January 26, 2024 18:21
Install P4 cli on CentOS 6
#!/usr/bin/env bash
#
# P4 CLIENT
#
echo "p4-cli: Install p4 yum repo"
cat > /etc/yum.repos.d/perforce.repo <<EOF
[perforce]
name=Perforce