Skip to content

Instantly share code, notes, and snippets.

@cotsog
Created September 4, 2015 20:04
Show Gist options
  • Save cotsog/51808da6710fc782d5dd to your computer and use it in GitHub Desktop.
Save cotsog/51808da6710fc782d5dd to your computer and use it in GitHub Desktop.
Custom MongoDB version on container infrastructure
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()'
@perlun
Copy link

perlun commented May 25, 2016

Ah, nice! Will try this and see if it works for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment