Skip to content

Commit

Permalink
Merge pull request shippableSamples#6 from avinci/master
Browse files Browse the repository at this point in the history
testing Post CI Dockerbuild for PR
  • Loading branch information
avinci committed Dec 16, 2015
2 parents 8a9a9d7 + cd11590 commit 6da2b8d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM drydock/u12nod:prod

RUN mkdir -p /tmp/logs
22 changes: 22 additions & 0 deletions installMongo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash -x

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org=2.6.11 mongodb-org-server=2.6.11 mongodb-org-shell=2.6.11 mongodb-org-mongos=2.6.11 mongodb-org-tools=2.6.11

sudo mkdir -p /data/db

# Pin the current version
sudo echo "mongodb-org hold" | sudo dpkg --set-selections
sudo echo "mongodb-org-server hold" | sudo dpkg --set-selections
sudo echo "mongodb-org-shell hold" | sudo dpkg --set-selections
sudo echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
sudo echo "mongodb-org-tools hold" | sudo dpkg --set-selections

#replace closed port & bing IP
sudo sed -i 's/#port = 27017/port = 27017/' /etc/mongod.conf
sudo sed -i 's/bind_ip = 127.0.0.1/bind_ip = 0.0.0.0/' /etc/mongod.conf
sudo sed -i 's/# nojournal = true/nojournal = true/' /etc/mongod.conf
sudo sed -i 's/#noprealloc = true/noprealloc = true/' /etc/mongod.conf
7 changes: 6 additions & 1 deletion shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ env:
- XUNIT_FILE=shippable/testresults/result.xml

install:
- source ~/.nvm/nvm.sh && nvm install 4.0.0
- source ~/.nvm/nvm.sh && nvm install 0.12
- node --version
- npm install
# - . installMongo.sh
# - cat /etc/mongod.conf
# - sudo mongod --smallfiles &
# - sleep 15
# - mongo --eval 'db.collection.find()'

# Create directories for test and coverage reports
before_script:
Expand Down

0 comments on commit 6da2b8d

Please sign in to comment.