dependencies: | |
cache_directories: | |
- mongodb-linux-x86_64-2.6.4 | |
pre: | |
- if [[ ! -d mongodb-linux-x86_64-2.6.4 ]]; then wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz && tar xvzf mongodb-linux-x86_64-2.6.4.tgz; fi | |
- sudo /etc/init.d/mongodb stop | |
- sudo cp mongodb-linux-x86_64-2.6.4/bin/* /usr/bin | |
- sudo /etc/init.d/mongodb start |
This comment has been minimized.
This comment has been minimized.
Thank you very much for this! Really helpful :_) |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
I think they also have mongodb included, so you don't have to actually download and install it yourself Simply set this in your machine:
services:
- mongodb |
This comment has been minimized.
This comment has been minimized.
@orcaman It is indeed included but it's an older version, so you don't have stuff like text search. |
This comment has been minimized.
This comment has been minimized.
how can mongo 3.0.x be run on Circle ci? |
This comment has been minimized.
This comment has been minimized.
Here is a cache_directories:
- mongodb-linux-x86_64-ubuntu1204-3.2.0
pre:
- if [[ ! -d mongodb-linux-x86_64-ubuntu1204-3.2.0 ]]; then wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1204-3.2.0.tgz && tar xvzf mongodb-linux-x86_64-ubuntu1204-3.2.0.tgz; fi
- sudo stop mongodb
- sudo cp mongodb-linux-x86_64-ubuntu1204-3.2.0/bin/* /usr/bin
- sudo start mongodb |
This comment has been minimized.
This comment has been minimized.
It may be a bit tricky when you’re deploying via AWS CodeDeploy, because everything that will be put in current directory and declared as cache will also be included/bundled in ZIP archive that will be placed on S3 for further deploy. So you easily will get extra 200 MB in size. To avoid such issues, it is better to download, unarchive and cache everything on one level higher, in dependencies:
cache_directories:
- ../mongodb-linux-x86_64-ubuntu1204-3.2.3
pre:
- if [[ ! -d ../mongodb-linux-x86_64-ubuntu1204-3.2.3 ]]; then wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1204-3.2.3.tgz -P ../ && tar xvzf ../mongodb-linux-x86_64-ubuntu1204-3.2.3.tgz -C ../; fi
- sudo stop mongodb
- sudo cp ../mongodb-linux-x86_64-ubuntu1204-3.2.3/bin/* /usr/bin
- sudo start mongodb
- pip install asynctest |
This comment has been minimized.
thanks..