File tree 3 files changed +36
-0
lines changed
3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -50,3 +50,12 @@ Runs [report-card](github.com/clever/report-card).
50
50
```
51
51
$ ./circleci/report-card [DOCKER_USER] [DOCKER_PASS] [DOCKER_EMAIL] [GITHUB_TOKEN]
52
52
```
53
+
54
+ ### Mongo install (version 2.4 only)
55
+
56
+ Installs Mongo version 2.4, rather than the default version in CircleCI.
57
+ At time of writing, ` v3.0.7 ` was default version in [ Ubuntu 14.04 (Trusty) image] ( https://circleci.com/docs/build-image-trusty/#mongodb ) .
58
+
59
+ ```
60
+ $ ./circleci/mongo-install-2.4
61
+ ```
Original file line number Diff line number Diff line change 4
4
- mkdir artifacts
5
5
- echo "foo" > artifacts/foo.txt
6
6
- echo "${CIRCLE_SHA1:0:7}" > VERSION
7
+ - ./circleci/mongo-install-2.4
7
8
- ./circleci/github-release $GH_RELEASE_TOKEN artifacts/
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Installs Mongo 2.4, rather than the default version in CircleCI.
4
+ #
5
+ # Usage:
6
+ #
7
+ # mongo-install-2.4
8
+
9
+ set -e
10
+
11
+ echo " Stopping and removing currently installed Mongodb..."
12
+ # the service running Mongo 3.x is `mongod` vs `mongodb` in 2.4
13
+ sudo service mongod stop
14
+ sudo apt-get purge mongodb-org*
15
+
16
+ echo " Attempting to download Mongo version 2.4.14 ..."
17
+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
18
+ echo ' deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
19
+ sudo apt-get update
20
+ sudo apt-get install -y mongodb-10gen=2.4.14
21
+
22
+ echo " Restarting new version of Mongodb..."
23
+ sudo service mongodb restart
24
+ mongo --version
25
+
26
+ echo " Mongo 2.4.14 installed successfully"
You can’t perform that action at this time.
0 commit comments