Skip to content

Instantly share code, notes, and snippets.

@harmy
Forked from j2labs/brubeck_installer.sh
Created August 5, 2012 06:10

Revisions

  1. harmy revised this gist Aug 5, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion brubeck_installer.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    ### Settings
    ###

    ZMQ_VERSION="zeromq-2.1.9"
    ZMQ_VERSION="zeromq-2.2.0"
    MONGREL2_VERSION="mongrel2-1.7.5"
    PREV_DIR=$PWD
    SRC_DIR=$HOME/src
  2. harmy revised this gist Aug 5, 2012. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions brubeck_installer.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    ###

    ZMQ_VERSION="zeromq-2.1.9"
    MONGREL2_VERSION="mongrel2-1.8.0"
    MONGREL2_VERSION="mongrel2-1.7.5"
    PREV_DIR=$PWD
    SRC_DIR=$HOME/src

    @@ -24,6 +24,7 @@ fi
    ###

    apt-get -y install \
    build-essential \
    python-dev \
    python-pip \
    libsqlite3-dev \
    @@ -97,4 +98,4 @@ if [ ! -d "brubeck" ]; then
    ### Install Brubeck itself
    python ./setup.py install
    cd ../..
    fi
    fi
  3. harmy revised this gist Aug 5, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion brubeck_installer.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    ###

    ZMQ_VERSION="zeromq-2.1.9"
    MONGREL2_VERSION="mongrel2-1.7.5"
    MONGREL2_VERSION="mongrel2-1.8.0"
    PREV_DIR=$PWD
    SRC_DIR=$HOME/src

  4. James Dennis revised this gist Sep 26, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion brubeck_installer.sh
    Original file line number Diff line number Diff line change
    @@ -56,7 +56,7 @@ ldconfig # update library cache
    cd $SRC_DIR
    if [ ! -d $MONGREL2_VERSION ]; then
    wget http://mongrel2.org/static/downloads/$MONGREL2_VERSION.tar.bz2
    tar zxf $MONGREL2_VERSION
    tar jxf $MONGREL2_VERSION.tar.bz2
    cd $MONGREL2_VERSION
    make && make install
    fi
  5. James Dennis revised this gist Sep 26, 2011. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions brubeck_installer.sh
    Original file line number Diff line number Diff line change
    @@ -54,9 +54,10 @@ ldconfig # update library cache
    ###

    cd $SRC_DIR
    if [ ! -d "mongrel2" ]; then
    git clone https://github.com/zedshaw/mongrel2.git
    cd mongrel2
    if [ ! -d $MONGREL2_VERSION ]; then
    wget http://mongrel2.org/static/downloads/$MONGREL2_VERSION.tar.bz2
    tar zxf $MONGREL2_VERSION
    cd $MONGREL2_VERSION
    make && make install
    fi

    @@ -96,4 +97,4 @@ if [ ! -d "brubeck" ]; then
    ### Install Brubeck itself
    python ./setup.py install
    cd ../..
    fi
    fi
  6. James Dennis created this gist Sep 26, 2011.
    99 changes: 99 additions & 0 deletions brubeck_installer.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,99 @@
    #!/bin/sh

    ###
    ### Settings
    ###

    ZMQ_VERSION="zeromq-2.1.9"
    MONGREL2_VERSION="mongrel2-1.7.5"
    PREV_DIR=$PWD
    SRC_DIR=$HOME/src


    ###
    ### Directory Structures
    ###

    if [ ! -d $SRC_DIR ]; then
    mkdir $SRC_DIR
    fi


    ###
    ### System Depenencies
    ###

    apt-get -y install \
    python-dev \
    python-pip \
    libsqlite3-dev \
    sqlite3 \
    libevent-dev \
    libev3


    ###
    ### ZeroMQ
    ###

    cd $SRC_DIR

    if [ ! -d $ZMQ_VERSION ]; then
    wget http://download.zeromq.org/$ZMQ_VERSION.tar.gz
    tar zxf $ZMQ_VERSION.tar.gz
    cd $ZMQ_VERSION
    ./autogen.sh
    ./configure && make && make install
    fi

    ldconfig # update library cache


    ###
    ### Mongrel2
    ###

    cd $SRC_DIR
    if [ ! -d "mongrel2" ]; then
    git clone https://github.com/zedshaw/mongrel2.git
    cd mongrel2
    make && make install
    fi


    ###
    ### Gevent
    ###

    cd $SRC_DIR
    pip install gevent


    ###
    ### Gevent-zeromq
    ###

    cd $SRC_DIR
    git clone https://github.com/traviscline/gevent-zeromq.git
    cd gevent-zeromq
    python ./setup.py install


    ###
    ### Brubeck
    ###

    cd $SRC_DIR
    if [ ! -d "brubeck" ]; then
    git clone https://github.com/j2labs/brubeck.git
    cd brubeck

    ### Install Brubeck's dependencies
    pip install -I -r envs/brubeck.reqs

    ### Concurrency already handled with gevent + zeromq

    ### Install Brubeck itself
    python ./setup.py install
    cd ../..
    fi