1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-06-17 10:03:20 +02:00

MongoDB data dir config change

This commit is contained in:
krish7919 (Krish) 2017-08-22 17:26:15 +02:00 committed by Krish
parent 2e40ad96f2
commit 9445647be5
4 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
docker build -t bigchaindb/mongodb:3.0 .
docker build -t bigchaindb/mongodb:3.1 .
docker push bigchaindb/mongodb:3.0
docker push bigchaindb/mongodb:3.1

View File

@ -76,7 +76,7 @@ setParameter:
authenticationMechanisms: MONGODB-X509,SCRAM-SHA-1
storage:
dbPath: /data/db
dbPath: /data/db/main
indexBuildRetry: true
journal:
enabled: true

View File

@ -88,6 +88,11 @@ sed -i "s|REPLICA_SET_NAME|${REPLICA_SET_NAME}|g" ${MONGODB_CONF_FILE_PATH}
# add the hostname and ip to hosts file
echo "${MONGODB_IP} ${MONGODB_FQDN}" >> $HOSTS_FILE_PATH
# create the directory if it does not exist, where MongoDB can store the data
# and config files; this assumes that the data directory is mounted at
# /data/db/main and the config directory is mounted at /data/configdb
mkdir -p /data/db/main /data/configdb/main
# start mongod
echo "INFO: starting mongod..."

View File

@ -21,7 +21,7 @@ spec:
terminationGracePeriodSeconds: 10
containers:
- name: mongodb
image: bigchaindb/mongodb:3.0
image: bigchaindb/mongodb:3.1
imagePullPolicy: IfNotPresent
env:
- name: MONGODB_FQDN
@ -104,4 +104,4 @@ spec:
- name: ca-auth
secret:
secretName: ca-auth
defaultMode: 0400
defaultMode: 0400