Made a symlink to db scripts and modified Dockerfile and entrypoint script for cgrates integration image

This commit is contained in:
nickolasdaniel
2022-03-11 16:50:10 +02:00
committed by Dan Christian Bogos
parent a906cf256e
commit 296ba2347c
14 changed files with 16 additions and 662 deletions

View File

@@ -0,0 +1 @@
../../../storage/mongo/

View File

@@ -1,9 +0,0 @@
db = db.getSiblingDB('cgrates')
db.createUser(
{
user: "cgrates",
pwd: "CGRateS.org",
roles: [ { role: "dbAdmin", db: "cgrates" } ]
}
)

View File

@@ -1,14 +0,0 @@
#! /usr/bin/env sh
mongo --quiet create_user.js
cu=$?
if [ $cu = 0 ]; then
echo ""
echo "\t+++ CGR-DB successfully set-up! +++"
echo ""
exit 0
fi