mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
MongoDB data dir config change
This commit is contained in:
parent
2e40ad96f2
commit
9445647be5
@ -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
|
||||
|
@ -76,7 +76,7 @@ setParameter:
|
||||
authenticationMechanisms: MONGODB-X509,SCRAM-SHA-1
|
||||
|
||||
storage:
|
||||
dbPath: /data/db
|
||||
dbPath: /data/db/main
|
||||
indexBuildRetry: true
|
||||
journal:
|
||||
enabled: true
|
||||
|
@ -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..."
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user