Created
June 27, 2012 22:37
-
-
Save bcarpio/3007346 to your computer and use it in GitHub Desktop.
mongo-perf
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
@task | |
def mongo_perf(): | |
sudo('apt-get install -y tcsh git-core scons g++ libpcre++-dev libboost-dev libreadline-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-date-time-dev python-pip build-essential python-dev') | |
with cd('/var/tmp'): | |
sudo('wget http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-v2.0-latest.tgz') | |
sudo('tar zxvf mongodb-linux-x86_64-v2.0-latest.tgz') | |
with cd('/var/tmp/mongo-cxx-driver-v2.0'): | |
sudo('scons') | |
sudo('scons install') | |
sudo('git clone https://github.com/mongodb/mongo-perf.git') | |
with cd('/var/tmp/mongo-perf'): | |
sudo('scons benchmark') | |
sudo('pip install pymongo==1.8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment