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
| #!/bin/bash | |
| redis_version=2.6.11 | |
| ############################################### | |
| # To use: | |
| # wget https://raw.github.com/gist/2776679/aff799d090fae9307ddfabf683b36587/install-redis.sh | |
| # chmod 777 install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| echo "*****************************************" | |
| echo " 1. Prerequisites: Install updates, set time zones, install GCC and make" |
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
| #!/bin/sh | |
| # From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
| # | |
| # redis - this script starts and stops the redis-server daemon | |
| # Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
| # Modified by Vince Yuan https://gist.github.com/vinceyuan/9667435 | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Redis is a persistent key-value database | |
| # processname: redis-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
| #!/bin/sh | |
| nodeversion=6.9.4 | |
| echo "Downloading Node from NodeJS website" | |
| wget https://nodejs.org/download/release/v${nodeversion}/node-v${nodeversion}.tar.gz | |
| tar -xvf node-v${nodeversion}.tar.gz | |
| yum groupinstall 'Development Tools' -y | |
| cd node-v${nodeversion} | |
| ./configure | |
| make && make install | |
| echo "Giving Root Access" |
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
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash | |
| # Exit Terminal and Login to use Command | |
| ~/.nvm/nvm.sh | |
| nvm install 4.4.5 # Here you can choose your version number |
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
| # Create/Modify /etc/yum.repos.d/epel.repo | |
| # [epel] | |
| name=Extra Packages for Enterprise Linux 6 - $basearch | |
| #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch | |
| mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch | |
| failovermethod=priority | |
| enabled=0 | |
| gpgcheck=1 | |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 |
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
| ====================== | |
| AmazonLinux/Ubuntu | |
| ====================== | |
| echo export VARIABLE_NAME=VALUE >> /etc/profile |
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
| http://kimh.github.io/blog/en/docker/gotchas-in-writing-dockerfile-en/ |
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
| wget http://uk1.php.net/get/php-5.6.32.tar.gz/from/this/mirror | |
| mv mirror php-5.6.32.tar.gz | |
| tar -xvf php-5.6.32.tar.gz | |
| cd php-5.6.32 | |
| apt-get install build-essential # Debian | |
| yum groupinstall 'Development Tools' # Readhat, CentOS | |
| ./configure '--enable-fpm' '--with-pdo-sqlite' '--with-mysql' '--with-mysqli' '--enable-bcmath' '--with-curl' '--with-pdo-mysql' '--enable-ftp''--with-xml' '--with-gd' '--with-bz2' '--with-zlib' '--with-libdir=lib64' '--with-kerberos' '--with-openssl' '--with-png' '--with-mongo=/usr/local/lib/php/extensions/no-debug-non-zts-20131226' '--enable-mbstring' | |
| make && make install |
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
| 1. Setup Jenkins | |
| 2. Install Build and Push Docker Image Plugin | |
| 3. add this DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock in /etc/default/docker at the end of file | |
| 4. Restart Docker Daemon | |
| 5. In the Build and Push Plugin, Docker Host URI: unix:///var/run/docker.sock |
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
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash | |
| . ~/.nvm/nvm.sh | |
| nvm install 6.11.5 |
OlderNewer