summaryrefslogtreecommitdiffstats
path: root/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nfvparser/toscaparser/tests/artifacts/mongodb/create.sh')
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mongodb/create.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh b/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh
new file mode 100644
index 0000000..d84c275
--- /dev/null
+++ b/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# This script installs mongodb
+
+apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
+echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
+
+apt-get update
+apt-get install -y mongodb-org
+
+#Wait for mongodb initialization
+while [[ ! -d "/var/lib/mongodb/_tmp" ]]; do
+ echo "Waiting for mongodb initialization ..."
+ sleep 5
+done