Created
September 4, 2015 20:04
-
-
Save cotsog/51808da6710fc782d5dd to your computer and use it in GitHub Desktop.
Custom MongoDB version on container infrastructure
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
sudo: false | |
env: | |
global: | |
- MONGODB_VERSION=2.6.10 | |
install: | |
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-$MONGODB_VERSION.tgz | |
- tar xfz mongodb-linux-x86_64-$MONGODB_VERSION.tgz | |
- export PATH=`pwd`/mongodb-linux-x86_64-$MONGODB_VERSION/bin:$PATH | |
- mkdir -p data/db | |
- mongod --dbpath=data/db & | |
- sleep 3 | |
script: | |
- mongo --eval 'db.hostInfo()' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, nice! Will try this and see if it works for us.