Skip to content

Instantly share code, notes, and snippets.

@mullingitover
Forked from fancyremarker/.bash_login.jenkins
Created April 29, 2014 00:31

Revisions

  1. Frank Macreery revised this gist Jul 3, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ service mongodb start
    # Set up Jenkins spot instance callbacks
    curl https://raw.github.com/gist/3085368/jenkins-spot-setup.py >> /usr/local/bin/jenkins-spot-setup.py
    chmod +x /usr/local/bin/jenkins-spot-setup.py
    sed -i 's/^exit 0$/python \/usr\/local\/bin\/jenkins-spot-setup.py\n&/' /etc/rc.local
    sed -i 's/^exit 0$/sudo -i -u jenkins python \/usr\/local\/bin\/jenkins-spot-setup.py\n&/' /etc/rc.local

    # Set up Redis
    apt-get install -y redis-server
  2. Frank Macreery revised this gist Jul 3, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ service mongodb start
    # Set up Jenkins spot instance callbacks
    curl https://raw.github.com/gist/3085368/jenkins-spot-setup.py >> /usr/local/bin/jenkins-spot-setup.py
    chmod +x /usr/local/bin/jenkins-spot-setup.py
    sed -i 's/exit 0/python \/usr\/local\/bin\/jenkins-spot-setup.py\n&/' /etc/rc.local
    sed -i 's/^exit 0$/python \/usr\/local\/bin\/jenkins-spot-setup.py\n&/' /etc/rc.local

    # Set up Redis
    apt-get install -y redis-server
  3. Frank Macreery revised this gist Jul 3, 2013. 3 changed files with 33 additions and 11 deletions.
    9 changes: 5 additions & 4 deletions _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@

    # Initialize ephemeral storage
    curl https://raw.github.com/gist/3085368/ephemeral > /etc/init.d/ephemeral
    chmod +x /etc/init.d/ephemeral
    chmod +x /etc/init.d/ephemeral
    ln -s ../init.d/ephemeral /etc/rcS.d/S10ephemeral
    /etc/init.d/ephemeral
    /etc/init.d/ephemeral
    ln -s /mnt/jenkins /var/jenkins
    ln -s /mnt/mongodb /var/lib/mongodb
    ln -s /mnt/tmp /tmp
    @@ -49,8 +49,9 @@ update-rc.d mongodb defaults
    service mongodb start

    # Set up Jenkins spot instance callbacks
    curl https://raw.github.com/gist/3085368/jenkins-spot-setup >> /etc/init.d/jenkins-spot-setup
    update-rc.d jenkins-spot-setup defaults
    curl https://raw.github.com/gist/3085368/jenkins-spot-setup.py >> /usr/local/bin/jenkins-spot-setup.py
    chmod +x /usr/local/bin/jenkins-spot-setup.py
    sed -i 's/exit 0/python \/usr\/local\/bin\/jenkins-spot-setup.py\n&/' /etc/rc.local

    # Set up Redis
    apt-get install -y redis-server
    7 changes: 0 additions & 7 deletions jenkins-spot-setup
    Original file line number Diff line number Diff line change
    @@ -1,7 +0,0 @@
    #!/bin/bash

    sudo wget https://raw.github.com/bwall/ec2-plugin/master/AMI-Scripts/ubuntu-init.py -O /usr/local/bin/userdata
    sudo chmod +x /usr/local/bin/userdata

    echo "Adding Jenkins callback script to run after boot is complete"
    sudo sed -i 's/exit 0/python \/usr\/local\/bin\/userdata\n&/' /etc/rc.local
    28 changes: 28 additions & 0 deletions jenkins-spot-setup.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    #!/usr/bin/python
    import os
    import httplib
    import string
    import base64

    conn = httplib.HTTPConnection("169.254.169.254")
    conn.request("GET", "/latest/user-data")
    response = conn.getresponse()
    userdata = response.read()

    args = string.split(userdata, "&")
    jenkinsUrl = ""
    jenkinsAuth = ""
    slaveName = ""

    for arg in args:
    if arg.split("=")[0] == "JENKINS_URL":
    jenkinsUrl = arg.split("=")[1]
    if arg.split("=", 1)[0] == "USER_DATA":
    subarg = base64.b64decode(arg.split("=", 1)[1])
    if subarg.split("=")[0] == "JENKINS_AUTH":
    jenkinsAuth = subarg.split("=")[1]
    if arg.split("=")[0] == "SLAVE_NAME":
    slaveName = arg.split("=")[1]

    os.system("wget " + jenkinsUrl + "jnlpJars/slave.jar -O slave.jar")
    os.system("java -jar slave.jar -jnlpCredentials " + jenkinsAuth + " -jnlpUrl " + jenkinsUrl + "computer/" + slaveName + "/slave-agent.jnlp")
  4. Frank Macreery revised this gist Jul 2, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jenkins-spot-setup
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,4 @@ sudo wget https://raw.github.com/bwall/ec2-plugin/master/AMI-Scripts/ubuntu-init
    sudo chmod +x /usr/local/bin/userdata

    echo "Adding Jenkins callback script to run after boot is complete"
    sudo sed -i 's/exit 0/python \/usr\/bin\/userdata\n&/' /etc/rc.local
    sudo sed -i 's/exit 0/python \/usr\/local\/bin\/userdata\n&/' /etc/rc.local
  5. Frank Macreery revised this gist Jul 2, 2013. 2 changed files with 14 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,9 @@ done
    apt-get update
    apt-get install -y git build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev libreadline-dev libxml2-dev autoconf libxslt-dev xvfb libgl1-mesa-dri xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic libyaml-dev

    # Jenkins spot request setup
    apt-get install -y openjdk-7-jre wget python

    # Set up Xvfb (virtual framebuffer)
    curl https://raw.github.com/gist/3085368/xvfb > /etc/init.d/xvfb
    chmod +x /etc/init.d/xvfb
    @@ -45,6 +48,10 @@ apt-get install -y mongodb-10gen
    update-rc.d mongodb defaults
    service mongodb start

    # Set up Jenkins spot instance callbacks
    curl https://raw.github.com/gist/3085368/jenkins-spot-setup >> /etc/init.d/jenkins-spot-setup
    update-rc.d jenkins-spot-setup defaults

    # Set up Redis
    apt-get install -y redis-server

    7 changes: 7 additions & 0 deletions jenkins-spot-setup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/bash

    sudo wget https://raw.github.com/bwall/ec2-plugin/master/AMI-Scripts/ubuntu-init.py -O /usr/local/bin/userdata
    sudo chmod +x /usr/local/bin/userdata

    echo "Adding Jenkins callback script to run after boot is complete"
    sudo sed -i 's/exit 0/python \/usr\/bin\/userdata\n&/' /etc/rc.local
  6. Frank Macreery revised this gist Jun 26, 2013. 2 changed files with 3 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ chmod +x /etc/init.d/xvfb
    update-rc.d xvfb defaults
    service xvfb start

    apt-get install -y openjdk-6-jdk
    apt-get install -y openjdk-6-jdk ant
    apt-get install -y imagemagick libmagick9-dev

    # Firefox setup (install dependencies, then uninstall to downgrade)
    2 changes: 2 additions & 0 deletions _jenkins-user-setup.sh
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,8 @@ ssh-keygen -q -t rsa -N "" -f .ssh/id_rsa
    curl -L https://get.rvm.io | bash -s stable
    rvm install 1.9.2
    rvm install 1.9.3
    rvm install 2.0.0
    rvm install jruby --1.9

    git clone git://github.com/creationix/nvm.git ~/.nvm
    curl https://raw.github.com/gist/3085368/bash_login.jenkins > /home/jenkins/.bash_login
  7. Frank Macreery revised this gist May 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,7 @@ apt-get install -y imagemagick libmagick9-dev
    # Firefox setup (install dependencies, then uninstall to downgrade)
    apt-get install -y firefox
    apt-get remove -y firefox firefox-globalmenu
    wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/12.0/linux-x86_64/en-US/firefox-12.0.tar.bz2 -O /tmp/firefox.tar.bz2
    wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/20.0.1/linux-x86_64/en-US/firefox-20.0.1.tar.bz2 -O /tmp/firefox.tar.bz2
    cd /usr/local
    tar xjf /tmp/firefox.tar.bz2
    cd bin
  8. Frank Macreery revised this gist Jan 15, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion _jenkins-user-setup.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,6 @@ mv /home/jenkins/.bashrc /home/jenkins/.bashrc~
    curl https://raw.github.com/gist/3085368/bashrc.jenkins > /home/jenkins/.bashrc
    cat /home/jenkins/.bashrc~ >> /home/jenkins/.bashrc
    rm /home/jenkins/.bashrc~
    nvm install v0.6.18
    nvm install v0.8.17

    curl https://raw.github.com/gist/3085368/ssh_config >> /home/jenkins/.ssh/config
  9. Frank Macreery revised this gist Nov 16, 2012. 2 changed files with 4 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion _jenkins-user-setup.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    sudo su -l jenkins
    ssh-keygen -q -t rsa -N "" -f .ssh/id_rsa

    bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
    curl -L https://get.rvm.io | bash -s stable
    rvm install 1.9.2
    rvm install 1.9.3

    3 changes: 3 additions & 0 deletions ssh_config
    Original file line number Diff line number Diff line change
    @@ -3,3 +3,6 @@ Host github.com

    Host heroku.com
    StrictHostKeyChecking no

    Host *
    ServerAliveInterval 15
  10. Frank Macreery revised this gist Nov 16, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ for f in /etc/logrotate.d/* /etc/logrotate.conf ; do
    done

    apt-get update
    apt-get install -y git build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev libreadline-dev libxml2-dev autoconf libxslt-dev xvfb libgl1-mesa-dri xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
    apt-get install -y git build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev libreadline-dev libxml2-dev autoconf libxslt-dev xvfb libgl1-mesa-dri xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic libyaml-dev

    # Set up Xvfb (virtual framebuffer)
    curl https://raw.github.com/gist/3085368/xvfb > /etc/init.d/xvfb
  11. Frank Macreery revised this gist Nov 12, 2012. No changes.
  12. Frank Macreery revised this gist Nov 12, 2012. No changes.
  13. Frank Macreery revised this gist Jul 10, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions bashrc.jenkins
    Original file line number Diff line number Diff line change
    @@ -6,3 +6,4 @@ if [ -z "$PS1" ]; then
    PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
    PATH=node_modules/.bin:$PATH
    fi

  14. Frank Macreery revised this gist Jul 10, 2012. 4 changed files with 20 additions and 12 deletions.
    7 changes: 7 additions & 0 deletions .bash_login.jenkins
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # if running bash
    if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
    fi
    6 changes: 5 additions & 1 deletion _jenkins-user-setup.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,11 @@ rvm install 1.9.2
    rvm install 1.9.3

    git clone git://github.com/creationix/nvm.git ~/.nvm
    curl https://raw.github.com/gist/3085368/bash_profile.jenkins >> /home/jenkins/.bash_profile
    curl https://raw.github.com/gist/3085368/bash_login.jenkins > /home/jenkins/.bash_login
    mv /home/jenkins/.bashrc /home/jenkins/.bashrc~
    curl https://raw.github.com/gist/3085368/bashrc.jenkins > /home/jenkins/.bashrc
    cat /home/jenkins/.bashrc~ >> /home/jenkins/.bashrc
    rm /home/jenkins/.bashrc~
    nvm install v0.6.18

    curl https://raw.github.com/gist/3085368/ssh_config >> /home/jenkins/.ssh/config
    11 changes: 0 additions & 11 deletions bash_profile.jenkins
    Original file line number Diff line number Diff line change
    @@ -1,11 +0,0 @@
    . ~/.nvm/nvm.sh

    # include .bash_login if it exists
    if [ -f "$HOME/.bash_login" ]; then
    . "$HOME/.bash_login"
    fi

    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
    8 changes: 8 additions & 0 deletions bashrc.jenkins
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

    . ~/.nvm/nvm.sh

    if [ -z "$PS1" ]; then
    PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
    PATH=node_modules/.bin:$PATH
    fi
  15. Frank Macreery revised this gist Jul 10, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bash_profile.jenkins
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,4 @@ fi
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
    fi
  16. Frank Macreery revised this gist Jul 10, 2012. 3 changed files with 12 additions and 10 deletions.
    2 changes: 1 addition & 1 deletion _jenkins-user-setup.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ rvm install 1.9.2
    rvm install 1.9.3

    git clone git://github.com/creationix/nvm.git ~/.nvm
    curl https://raw.github.com/gist/3085368/bash_login.jenkins >> /home/jenkins/.bash_login
    curl https://raw.github.com/gist/3085368/bash_profile.jenkins >> /home/jenkins/.bash_profile
    nvm install v0.6.18

    curl https://raw.github.com/gist/3085368/ssh_config >> /home/jenkins/.ssh/config
    9 changes: 0 additions & 9 deletions bash_login.jenkins
    Original file line number Diff line number Diff line change
    @@ -1,9 +0,0 @@
    . ~/.nvm/nvm.sh

    # if running bash
    if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
    fi
    11 changes: 11 additions & 0 deletions bash_profile.jenkins
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    . ~/.nvm/nvm.sh

    # include .bash_login if it exists
    if [ -f "$HOME/.bash_login" ]; then
    . "$HOME/.bash_login"
    fi

    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
  17. Frank Macreery revised this gist Jul 10, 2012. 2 changed files with 7 additions and 7 deletions.
    10 changes: 5 additions & 5 deletions _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # As root ( via `sudo su -` ):

    # Initialize ephemeral storage
    curl https://raw.github.com/gist/2897653/ephemeral > /etc/init.d/ephemeral
    curl https://raw.github.com/gist/3085368/ephemeral > /etc/init.d/ephemeral
    chmod +x /etc/init.d/ephemeral
    ln -s ../init.d/ephemeral /etc/rcS.d/S10ephemeral
    /etc/init.d/ephemeral
    @@ -19,7 +19,7 @@ apt-get update
    apt-get install -y git build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev libreadline-dev libxml2-dev autoconf libxslt-dev xvfb libgl1-mesa-dri xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic

    # Set up Xvfb (virtual framebuffer)
    curl https://raw.github.com/gist/2897653/xvfb > /etc/init.d/xvfb
    curl https://raw.github.com/gist/3085368/xvfb > /etc/init.d/xvfb
    chmod +x /etc/init.d/xvfb
    update-rc.d xvfb defaults
    service xvfb start
    @@ -38,7 +38,7 @@ ln -s ../firefox/firefox .
    ln -s ../firefox/firefox-bin .

    # Set up MongoDB
    curl https://raw.github.com/gist/2897653/sources.list.10gen >> /etc/apt/sources.list
    curl https://raw.github.com/gist/3085368/sources.list.10gen >> /etc/apt/sources.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
    apt-get update
    apt-get install -y mongodb-10gen
    @@ -56,9 +56,9 @@ chown -R jenkins:jenkins /home/jenkins/.ssh
    chmod 700 /home/jenkins/.ssh
    chmod 600 /home/jenkins/.ssh/authorized_keys

    curl https://raw.github.com/gist/2897653/sudoers.wheel >> /etc/sudoers
    curl https://raw.github.com/gist/3085368/sudoers.wheel >> /etc/sudoers
    groupadd wheel
    usermod -G wheel jenkins

    mkdir -p /var/jenkins/workspace
    chown -R jenkins:jenkins /var/jenkins
    chown -R jenkins:jenkins /var/jenkins
    4 changes: 2 additions & 2 deletions _jenkins-user-setup.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ rvm install 1.9.2
    rvm install 1.9.3

    git clone git://github.com/creationix/nvm.git ~/.nvm
    curl https://raw.github.com/gist/2897653/bash_login.jenkins >> /home/jenkins/.bash_login
    curl https://raw.github.com/gist/3085368/bash_login.jenkins >> /home/jenkins/.bash_login
    nvm install v0.6.18

    curl https://raw.github.com/gist/2897653/ssh_config >> /home/jenkins/.ssh/config
    curl https://raw.github.com/gist/3085368/ssh_config >> /home/jenkins/.ssh/config
  18. Frank Macreery created this gist Jul 10, 2012.
    64 changes: 64 additions & 0 deletions _base-setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,64 @@
    #!/bin/bash
    # As root ( via `sudo su -` ):

    # Initialize ephemeral storage
    curl https://raw.github.com/gist/2897653/ephemeral > /etc/init.d/ephemeral
    chmod +x /etc/init.d/ephemeral
    ln -s ../init.d/ephemeral /etc/rcS.d/S10ephemeral
    /etc/init.d/ephemeral
    ln -s /mnt/jenkins /var/jenkins
    ln -s /mnt/mongodb /var/lib/mongodb
    ln -s /mnt/tmp /tmp

    # Set logrotate to keep only one unit (day or week) of each log
    for f in /etc/logrotate.d/* /etc/logrotate.conf ; do
    sed -i 's/rotate [0-9]*$/rotate 1/' $f
    done

    apt-get update
    apt-get install -y git build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev libreadline-dev libxml2-dev autoconf libxslt-dev xvfb libgl1-mesa-dri xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic

    # Set up Xvfb (virtual framebuffer)
    curl https://raw.github.com/gist/2897653/xvfb > /etc/init.d/xvfb
    chmod +x /etc/init.d/xvfb
    update-rc.d xvfb defaults
    service xvfb start

    apt-get install -y openjdk-6-jdk
    apt-get install -y imagemagick libmagick9-dev

    # Firefox setup (install dependencies, then uninstall to downgrade)
    apt-get install -y firefox
    apt-get remove -y firefox firefox-globalmenu
    wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/12.0/linux-x86_64/en-US/firefox-12.0.tar.bz2 -O /tmp/firefox.tar.bz2
    cd /usr/local
    tar xjf /tmp/firefox.tar.bz2
    cd bin
    ln -s ../firefox/firefox .
    ln -s ../firefox/firefox-bin .

    # Set up MongoDB
    curl https://raw.github.com/gist/2897653/sources.list.10gen >> /etc/apt/sources.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
    apt-get update
    apt-get install -y mongodb-10gen
    update-rc.d mongodb defaults
    service mongodb start

    # Set up Redis
    apt-get install -y redis-server

    # User-level setup
    useradd -k /etc/skel -m -s /bin/bash jenkins
    mkdir /home/jenkins/.ssh
    cp /home/ubuntu/.ssh/authorized_keys /home/jenkins/.ssh/authorized_keys
    chown -R jenkins:jenkins /home/jenkins/.ssh
    chmod 700 /home/jenkins/.ssh
    chmod 600 /home/jenkins/.ssh/authorized_keys

    curl https://raw.github.com/gist/2897653/sudoers.wheel >> /etc/sudoers
    groupadd wheel
    usermod -G wheel jenkins

    mkdir -p /var/jenkins/workspace
    chown -R jenkins:jenkins /var/jenkins
    15 changes: 15 additions & 0 deletions _jenkins-user-setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/bin/bash
    # As user jenkins ( via `sudo su - jenkins` ):

    sudo su -l jenkins
    ssh-keygen -q -t rsa -N "" -f .ssh/id_rsa

    bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
    rvm install 1.9.2
    rvm install 1.9.3

    git clone git://github.com/creationix/nvm.git ~/.nvm
    curl https://raw.github.com/gist/2897653/bash_login.jenkins >> /home/jenkins/.bash_login
    nvm install v0.6.18

    curl https://raw.github.com/gist/2897653/ssh_config >> /home/jenkins/.ssh/config
    9 changes: 9 additions & 0 deletions bash_login.jenkins
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    . ~/.nvm/nvm.sh

    # if running bash
    if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
    fi
    11 changes: 11 additions & 0 deletions ephemeral
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/sh
    # Initialize ephemeral storage on /mnt

    mkdir -p /mnt/jenkins/workspace
    chown -R jenkins:jenkins /mnt/jenkins

    mkdir -p /mnt/mongodb
    chown mongodb:mongodb /mnt/mongodb

    mkdir -p /mnt/tmp
    chmod 1777 /mnt/tmp
    2 changes: 2 additions & 0 deletions sources.list.10gen
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # 10gen MongoDB repository
    deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
    5 changes: 5 additions & 0 deletions ssh_config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Host github.com
    StrictHostKeyChecking no

    Host heroku.com
    StrictHostKeyChecking no
    1 change: 1 addition & 0 deletions sudoers.wheel
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    %wheel ALL=(ALL) NOPASSWD: ALL
    25 changes: 25 additions & 0 deletions xvfb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    #!/bin/sh

    XVFB=/usr/bin/Xvfb
    XVFBARGS=":99 -screen 0 1024x768x24 -fbdir /var/run -ac"
    PIDFILE=/var/run/xvfb.pid
    case "$1" in
    start)
    echo -n "Starting virtual X frame buffer: Xvfb"
    start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS
    echo "."
    ;;
    stop)
    echo -n "Stopping virtual X frame buffer: Xvfb"
    start-stop-daemon --stop --quiet --pidfile $PIDFILE
    echo "."
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    *)
    echo "Usage: /etc/init.d/xvfb {start|stop|restart}"
    exit 1
    esac
    exit 0