parent
9c25f21a0c
commit
5ac3e6305f
|
|
@ -68,6 +68,8 @@ export MONGODB_CONF_FILE="$MONGODB_CONF_DIR/mongodb.conf"
|
|||
export MONGODB_KEY_FILE="$MONGODB_CONF_DIR/keyfile"
|
||||
export MONGODB_PID_FILE="$MONGODB_TMP_DIR/mongodb.pid"
|
||||
export MONGODB_LOG_FILE="$MONGODB_LOG_DIR/mongodb.log"
|
||||
export MONGODB_RC_FILE="$HOME/.mongorc.js"
|
||||
export MONGODB_DB_SHELL_FILE="$HOME/.dbshell"
|
||||
export MONGODB_INITSCRIPTS_DIR="/docker-entrypoint-initdb.d"
|
||||
|
||||
# System users (when running with a privileged user)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,10 @@ chmod -R g+rwX "$MONGODB_TMP_DIR" "$MONGODB_LOG_DIR" "$MONGODB_CONF_DIR" "$MONGO
|
|||
render-template "$MONGODB_MONGOD_TEMPLATES_FILE" > "$MONGODB_CONF_FILE"
|
||||
|
||||
# Create .dbshell file to avoid error message
|
||||
touch /.dbshell && chmod g+rw /.dbshell
|
||||
touch "$MONGODB_DB_SHELL_FILE" && chmod g+rw "$MONGODB_DB_SHELL_FILE"
|
||||
# Create .mongorc.js file to avoid error message
|
||||
touch "$MONGODB_RC_FILE" && chmod g+rw "$MONGODB_RC_FILE"
|
||||
|
||||
chmod g+w "$MONGODB_CONF_FILE"
|
||||
# Redirect all logging to stdout
|
||||
ln -sf /dev/stdout "$MONGODB_LOG_FILE"
|
||||
|
|
|
|||
Loading…
Reference in New Issue