This file contains hidden or 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 | |
# 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 | |
#-------------------------------- |
This file contains hidden or 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
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 = { |
This file contains hidden or 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
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 = { |
This file contains hidden or 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
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' |
This file contains hidden or 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 | |
NEXUS_DEPLOY_VERSION=2.12.0 | |
NEXUS_PATCH_LEVEL=01 | |
# | |
# JAVA OPENJDK | |
# | |
echo "nexus: install Java OpenJDK" |
This file contains hidden or 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 "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 |
This file contains hidden or 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 | |
# | |
# DEVTOOLS | |
# | |
echo "rvm: installing rvm prerequisites" | |
curl -sSL https://gist.githubusercontent.com/ssmythe/50564cc35d4c1f43f80a/raw/25212d56133b9d44479cbe55b0ea1a22a0a10324/install-rvm-prereqs-centos6.sh | bash | |
# |
This file contains hidden or 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 | |
yum -y groupinstall development | |
yum -y install libyaml-devel libffi-devel readline-devel zlib-devel openssl-devel sqlite-devel |
This file contains hidden or 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 | |
# | |
# JAVA OPENJDK | |
# | |
echo "jenkins: Install Java" | |
# https://issues.jenkins-ci.org/browse/JENKINS-31102 | |
yum -y install java-1.8.0-openjdk |
This file contains hidden or 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 | |
# | |
# P4 CLIENT | |
# | |
echo "p4-cli: Install p4 yum repo" | |
cat > /etc/yum.repos.d/perforce.repo <<EOF | |
[perforce] | |
name=Perforce |